@koi-design/uxd-ui 14.0.3 → 14.0.5

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 (478) hide show
  1. package/es/components/Affix/Affix.mjs +1 -1
  2. package/es/components/Alert/Alert.mjs +1 -1
  3. package/es/components/Anchor/Anchor.mjs +1 -1
  4. package/es/components/Anchor/AnchorLink.mjs +1 -1
  5. package/es/components/AutoComplete/AutoComplete.mjs +1 -1
  6. package/es/components/Avatar/Avatar.mjs +1 -1
  7. package/es/components/BackTop/BackTop.mjs +1 -1
  8. package/es/components/Badge/Badge.mjs +4 -6
  9. package/es/components/Badge/Badge.mjs.map +1 -1
  10. package/es/components/Button/Button.mjs +1 -1
  11. package/es/components/Button/ButtonGroup.mjs +1 -1
  12. package/es/components/Calendar/Calendar.mjs +1 -1
  13. package/es/components/Calendar/Calendar.vue.d.ts +15 -0
  14. package/es/components/Calendar/Header.mjs +1 -1
  15. package/es/components/Calendar/Header.vue.d.ts +15 -0
  16. package/es/components/Calendar/index.d.ts +30 -0
  17. package/es/components/Calendar/table/DateTable.mjs +1 -1
  18. package/es/components/Calendar/table/MonthTable.mjs +1 -1
  19. package/es/components/Calendar/table/YearTable.mjs +1 -1
  20. package/es/components/Card/CardMeta.mjs +1 -1
  21. package/es/components/Carousel/Carousel.mjs +1 -1
  22. package/es/components/Carousel/CarouselItem.mjs +1 -1
  23. package/es/components/Checkbox/Checkbox.mjs +1 -1
  24. package/es/components/Checkbox/CheckboxGroup.mjs +1 -1
  25. package/es/components/Collapse/Collapse.mjs +1 -1
  26. package/es/components/Collapse/Panel.mjs +1 -1
  27. package/es/components/ColorPicker/ColorPicker.mjs +1 -1
  28. package/es/components/ColorPicker/units/AlphaSlider.mjs +1 -1
  29. package/es/components/ColorPicker/units/HueSlider.mjs +1 -1
  30. package/es/components/ColorPicker/units/PreColors.mjs +1 -1
  31. package/es/components/ColorPicker/units/SvPanel.mjs +1 -1
  32. package/es/components/DatePicker/DatePicker.mjs +1 -1
  33. package/es/components/DatePicker/Panel/DatePanel/DatePanel.mjs +1 -1
  34. package/es/components/DatePicker/Panel/DatePanel/DatePanelHeader.mjs +1 -1
  35. package/es/components/DatePicker/Panel/DatePickerPanel.mjs +1 -1
  36. package/es/components/DatePicker/Panel/DateRangePanel.mjs +1 -1
  37. package/es/components/DatePicker/Panel/MonthPanel/MonthPanel.mjs +1 -1
  38. package/es/components/DatePicker/Panel/MonthPanel/MonthPanelHeader.mjs +1 -1
  39. package/es/components/DatePicker/Panel/QuarterPanel/QuarterPanel.mjs +1 -1
  40. package/es/components/DatePicker/Panel/QuarterPanel/QuarterPanelHeader.mjs +1 -1
  41. package/es/components/DatePicker/Panel/QuarterPanel/QuarterTable.mjs +1 -1
  42. package/es/components/DatePicker/Panel/RangePart.mjs +1 -1
  43. package/es/components/DatePicker/Panel/YearPanel/YearPanel.mjs +1 -1
  44. package/es/components/DatePicker/Panel/YearPanel/YearPanelHeader.mjs +1 -1
  45. package/es/components/DatePicker/Trigger/DatePickerInput.mjs +1 -1
  46. package/es/components/DatePicker/Trigger/DateRangeInput.mjs +1 -1
  47. package/es/components/Divider/Divider.mjs +1 -1
  48. package/es/components/Drawer/Drawer.d.ts +9 -0
  49. package/es/components/Drawer/Drawer.mjs +10 -8
  50. package/es/components/Drawer/Drawer.mjs.map +1 -1
  51. package/es/components/Drawer/Drawer.type.d.ts +4 -0
  52. package/es/components/Drawer/Drawer.type.mjs +4 -0
  53. package/es/components/Drawer/Drawer.type.mjs.map +1 -1
  54. package/es/components/Drawer/index.d.ts +15 -0
  55. package/es/components/Dropdown/Dropdown.mjs +1 -1
  56. package/es/components/Form/Form.mjs +1 -1
  57. package/es/components/Grid/Col.mjs +1 -1
  58. package/es/components/Grid/Row.mjs +1 -1
  59. package/es/components/Icon/ColorfullEmpty.mjs +1 -1
  60. package/es/components/Icon/Icon.mjs +1 -1
  61. package/es/components/Icon/RangeSeparator.mjs +1 -1
  62. package/es/components/Image/Image.mjs +1 -1
  63. package/es/components/Image/ImgViewer.mjs +1 -1
  64. package/es/components/InfoView/InfoView.mjs +1 -1
  65. package/es/components/Layout/Content.mjs +1 -1
  66. package/es/components/Layout/Footer.mjs +1 -1
  67. package/es/components/Layout/Header.mjs +1 -1
  68. package/es/components/Layout/Layout.mjs +1 -1
  69. package/es/components/Layout/Sider.mjs +1 -1
  70. package/es/components/Link/Link.mjs +1 -1
  71. package/es/components/List/List.mjs +1 -1
  72. package/es/components/List/ListItemMeta.mjs +1 -1
  73. package/es/components/LoadingBar/LoadingBar.mjs +1 -1
  74. package/es/components/Mask/Mask.d.ts +2 -1
  75. package/es/components/Mask/Mask.mjs +6 -2
  76. package/es/components/Mask/Mask.mjs.map +1 -1
  77. package/es/components/Mask/index.d.ts +5 -2
  78. package/es/components/Mention/Mention.mjs +1 -1
  79. package/es/components/Mention/MentionsSelect.mjs +1 -1
  80. package/es/components/Menu/MenuDivider.mjs +1 -1
  81. package/es/components/Menu/MenuItem.mjs +1 -1
  82. package/es/components/Menu/MenuItemGroup.mjs +1 -1
  83. package/es/components/Menu/SubMenu.mjs +1 -1
  84. package/es/components/Message/Message.type.d.ts +1 -0
  85. package/es/components/Modal/ConfirmDialog.mjs +1 -1
  86. package/es/components/Modal/Modal.mjs +1 -1
  87. package/es/components/Notification/Notice.mjs +1 -1
  88. package/es/components/Notification/Notification.mjs +1 -1
  89. package/es/components/PageHeader/PageHeader.mjs +1 -1
  90. package/es/components/Pagination/Pager.mjs +1 -1
  91. package/es/components/PopConfirm/PopConfirm.mjs +1 -1
  92. package/es/components/Popover/Popover.mjs +1 -1
  93. package/es/components/Progress/Line.mjs +1 -1
  94. package/es/components/Progress/Progress.mjs +1 -1
  95. package/es/components/Progress/Water.mjs +1 -1
  96. package/es/components/Radio/Radio.mjs +6 -5
  97. package/es/components/Radio/Radio.mjs.map +1 -1
  98. package/es/components/Radio/Radio.type.d.ts +4 -0
  99. package/es/components/Radio/Radio.type.mjs +4 -0
  100. package/es/components/Radio/Radio.type.mjs.map +1 -1
  101. package/es/components/Radio/Radio.vue.d.ts +9 -0
  102. package/es/components/Radio/index.d.ts +15 -0
  103. package/es/components/Rate/Rate.mjs +1 -1
  104. package/es/components/Rate/Star.mjs +1 -1
  105. package/es/components/Result/Result.mjs +1 -1
  106. package/es/components/Select/DropdownMenu.mjs +1 -1
  107. package/es/components/Select/RefSelect.mjs +1 -1
  108. package/es/components/Select/Selection/Input.mjs +1 -1
  109. package/es/components/Select/Selection/Multiple.mjs +1 -1
  110. package/es/components/Select/Selection/Selection.mjs +1 -1
  111. package/es/components/Select/Selection/Single.mjs +1 -1
  112. package/es/components/Skeleton/Skeleton.mjs +1 -1
  113. package/es/components/Skeleton/SkeletonItem.mjs +1 -1
  114. package/es/components/Slider/Handle.mjs +1 -1
  115. package/es/components/Slider/Marks.mjs +1 -1
  116. package/es/components/Slider/Slider.d.ts +0 -20
  117. package/es/components/Slider/Slider.mjs +1 -2
  118. package/es/components/Slider/Slider.mjs.map +1 -1
  119. package/es/components/Slider/Slider.type.d.ts +0 -9
  120. package/es/components/Slider/Slider.type.mjs +0 -13
  121. package/es/components/Slider/Slider.type.mjs.map +1 -1
  122. package/es/components/Slider/Steps.mjs +1 -1
  123. package/es/components/Slider/index.d.ts +0 -33
  124. package/es/components/Spin/Spin.mjs +1 -1
  125. package/es/components/Statistic/Statistic.mjs +1 -1
  126. package/es/components/Steps/Step.mjs +1 -1
  127. package/es/components/Steps/Steps.mjs +1 -1
  128. package/es/components/Switch/Switch.mjs +1 -1
  129. package/es/components/Table/BaseTable.mjs +21 -7
  130. package/es/components/Table/BaseTable.mjs.map +1 -1
  131. package/es/components/Table/BaseTable.vue.d.ts +48 -13
  132. package/es/components/Table/BodyTable.mjs +1 -1
  133. package/es/components/Table/BodyTable.vue.d.ts +48 -13
  134. package/es/components/Table/HeadTable.mjs +1 -1
  135. package/es/components/Table/HeadTable.vue.d.ts +48 -13
  136. package/es/components/Table/Table.mjs +9 -10
  137. package/es/components/Table/Table.mjs.map +1 -1
  138. package/es/components/Table/Table.type.d.ts +7 -5
  139. package/es/components/Table/Table.type.mjs.map +1 -1
  140. package/es/components/Table/Table.vue.d.ts +101 -31
  141. package/es/components/Table/TableBox.mjs +1 -1
  142. package/es/components/Table/TableBox.vue.d.ts +96 -26
  143. package/es/components/Table/hooks/useTableResize.d.ts +1 -1
  144. package/es/components/Table/hooks/useTableResize.mjs +13 -71
  145. package/es/components/Table/hooks/useTableResize.mjs.map +1 -1
  146. package/es/components/Table/tableUnits/ColGroup.mjs +9 -6
  147. package/es/components/Table/tableUnits/ColGroup.mjs.map +1 -1
  148. package/es/components/Table/tableUnits/DraggableIcon.mjs +1 -1
  149. package/es/components/Table/tableUnits/ExpandIcon.mjs +3 -3
  150. package/es/components/Table/tableUnits/ExpandIcon.mjs.map +1 -1
  151. package/es/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  152. package/es/components/Table/tableUnits/ExpandRows.mjs +1 -1
  153. package/es/components/Table/tableUnits/ExpandRows.mjs.map +1 -1
  154. package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +23 -5
  155. package/es/components/Table/tableUnits/FilterDropdown.mjs +1 -1
  156. package/es/components/Table/tableUnits/SelectionBox.mjs +1 -1
  157. package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  158. package/es/components/Table/tableUnits/SelectionCheckAll.mjs +1 -1
  159. package/es/components/Table/tableUnits/TableBody.mjs +1 -1
  160. package/es/components/Table/tableUnits/TableBody.vue.d.ts +46 -10
  161. package/es/components/Table/tableUnits/TableCell.mjs +109 -96
  162. package/es/components/Table/tableUnits/TableCell.mjs.map +1 -1
  163. package/es/components/Table/tableUnits/TableCell.vue.d.ts +22 -4
  164. package/es/components/Table/tableUnits/TableHeader.mjs +1 -1
  165. package/es/components/Table/tableUnits/TableHeaderRow.mjs +1 -1
  166. package/es/components/Table/tableUnits/TableRow.mjs +1 -1
  167. package/es/components/Table/tableUnits/TableRow.vue.d.ts +23 -5
  168. package/es/components/Table/tableUnits/TableSummaryRow.mjs +1 -1
  169. package/es/components/Tabs/TabBar.mjs +1 -1
  170. package/es/components/Tabs/TabNav.mjs +1 -1
  171. package/es/components/Tabs/TabPane.mjs +1 -1
  172. package/es/components/Tag/Tag.mjs +7 -10
  173. package/es/components/Tag/Tag.mjs.map +1 -1
  174. package/es/components/Tag/Tag.type.d.ts +0 -4
  175. package/es/components/Tag/Tag.type.mjs +0 -4
  176. package/es/components/Tag/Tag.type.mjs.map +1 -1
  177. package/es/components/Tag/Tag.vue.d.ts +7 -20
  178. package/es/components/Tag/index.d.ts +21 -48
  179. package/es/components/ThemePanel/ThemePanel.mjs +1 -1
  180. package/es/components/TimePicker/Panel/SelectList.mjs +1 -1
  181. package/es/components/TimePicker/Panel/TimePanel.mjs +1 -1
  182. package/es/components/TimePicker/Panel/TimeRangePane.mjs +1 -1
  183. package/es/components/TimePicker/TimePicker.mjs +1 -1
  184. package/es/components/TimePicker/Trigger/TimePickerInput.mjs +1 -1
  185. package/es/components/TimePicker/Trigger/TimePickerText.mjs +1 -1
  186. package/es/components/TimePicker/Trigger/TimeRangeInput.mjs +1 -1
  187. package/es/components/Timeline/TimelineItem.mjs +1 -1
  188. package/es/components/Toggle/Toggle.mjs +1 -1
  189. package/es/components/Tooltip/Tooltip.mjs +1 -1
  190. package/es/components/Transfer/Operation.mjs +1 -1
  191. package/es/components/Transfer/Transfer.mjs +1 -1
  192. package/es/components/Transfer/TransferList.mjs +1 -1
  193. package/es/components/Transfer/TransferListItem.mjs +1 -1
  194. package/es/components/Tree/SubTree.mjs +1 -1
  195. package/es/components/Tree/Tree.mjs +1 -1
  196. package/es/components/Tree/TreeNode.mjs +1 -1
  197. package/es/components/TreeSelect/TreeSelect.mjs +1 -1
  198. package/es/components/TreeSelect/TreeSelect.vue.d.ts +1 -1
  199. package/es/components/TreeSelect/index.d.ts +3 -3
  200. package/es/components/Upload/UploadDragger.mjs +1 -1
  201. package/es/components/Upload/UploadList.mjs +1 -1
  202. package/es/components/Upload/Uploader.mjs +1 -1
  203. package/es/components/VirtualList/ListContent.mjs +1 -1
  204. package/es/components/VirtualList/VirtualList.mjs +1 -1
  205. package/es/components/VirtualList/VirtualScrollBar.mjs +1 -1
  206. package/es/components/base/HighlightText.mjs +1 -1
  207. package/es/components/base/RenderEmpty.mjs +1 -1
  208. package/es/components/base/ResizeObserver.mjs +1 -1
  209. package/es/components/base/ResizeObserver.mjs.map +1 -1
  210. package/lib/components/Affix/Affix.js +1 -1
  211. package/lib/components/Alert/Alert.js +1 -1
  212. package/lib/components/Anchor/Anchor.js +1 -1
  213. package/lib/components/Anchor/AnchorLink.js +1 -1
  214. package/lib/components/AutoComplete/AutoComplete.js +1 -1
  215. package/lib/components/Avatar/Avatar.js +1 -1
  216. package/lib/components/BackTop/BackTop.js +1 -1
  217. package/lib/components/Badge/Badge.js +4 -6
  218. package/lib/components/Badge/Badge.js.map +1 -1
  219. package/lib/components/Button/Button.js +1 -1
  220. package/lib/components/Button/ButtonGroup.js +1 -1
  221. package/lib/components/Calendar/Calendar.js +1 -1
  222. package/lib/components/Calendar/Calendar.vue.d.ts +15 -0
  223. package/lib/components/Calendar/Header.js +1 -1
  224. package/lib/components/Calendar/Header.vue.d.ts +15 -0
  225. package/lib/components/Calendar/index.d.ts +30 -0
  226. package/lib/components/Calendar/table/DateTable.js +1 -1
  227. package/lib/components/Calendar/table/MonthTable.js +1 -1
  228. package/lib/components/Calendar/table/YearTable.js +1 -1
  229. package/lib/components/Card/CardMeta.js +1 -1
  230. package/lib/components/Carousel/Carousel.js +1 -1
  231. package/lib/components/Carousel/CarouselItem.js +1 -1
  232. package/lib/components/Checkbox/Checkbox.js +1 -1
  233. package/lib/components/Checkbox/CheckboxGroup.js +1 -1
  234. package/lib/components/Collapse/Collapse.js +1 -1
  235. package/lib/components/Collapse/Panel.js +1 -1
  236. package/lib/components/ColorPicker/ColorPicker.js +1 -1
  237. package/lib/components/ColorPicker/units/AlphaSlider.js +1 -1
  238. package/lib/components/ColorPicker/units/HueSlider.js +1 -1
  239. package/lib/components/ColorPicker/units/PreColors.js +1 -1
  240. package/lib/components/ColorPicker/units/SvPanel.js +1 -1
  241. package/lib/components/DatePicker/DatePicker.js +1 -1
  242. package/lib/components/DatePicker/Panel/DatePanel/DatePanel.js +1 -1
  243. package/lib/components/DatePicker/Panel/DatePanel/DatePanelHeader.js +1 -1
  244. package/lib/components/DatePicker/Panel/DatePickerPanel.js +1 -1
  245. package/lib/components/DatePicker/Panel/DateRangePanel.js +1 -1
  246. package/lib/components/DatePicker/Panel/MonthPanel/MonthPanel.js +1 -1
  247. package/lib/components/DatePicker/Panel/MonthPanel/MonthPanelHeader.js +1 -1
  248. package/lib/components/DatePicker/Panel/QuarterPanel/QuarterPanel.js +1 -1
  249. package/lib/components/DatePicker/Panel/QuarterPanel/QuarterPanelHeader.js +1 -1
  250. package/lib/components/DatePicker/Panel/QuarterPanel/QuarterTable.js +1 -1
  251. package/lib/components/DatePicker/Panel/RangePart.js +1 -1
  252. package/lib/components/DatePicker/Panel/YearPanel/YearPanel.js +1 -1
  253. package/lib/components/DatePicker/Panel/YearPanel/YearPanelHeader.js +1 -1
  254. package/lib/components/DatePicker/Trigger/DatePickerInput.js +1 -1
  255. package/lib/components/DatePicker/Trigger/DateRangeInput.js +1 -1
  256. package/lib/components/Divider/Divider.js +1 -1
  257. package/lib/components/Drawer/Drawer.d.ts +9 -0
  258. package/lib/components/Drawer/Drawer.js +10 -8
  259. package/lib/components/Drawer/Drawer.js.map +1 -1
  260. package/lib/components/Drawer/Drawer.type.d.ts +4 -0
  261. package/lib/components/Drawer/Drawer.type.js +4 -0
  262. package/lib/components/Drawer/Drawer.type.js.map +1 -1
  263. package/lib/components/Drawer/index.d.ts +15 -0
  264. package/lib/components/Dropdown/Dropdown.js +1 -1
  265. package/lib/components/Form/Form.js +1 -1
  266. package/lib/components/Grid/Col.js +1 -1
  267. package/lib/components/Grid/Row.js +1 -1
  268. package/lib/components/Icon/ColorfullEmpty.js +1 -1
  269. package/lib/components/Icon/Icon.js +1 -1
  270. package/lib/components/Icon/RangeSeparator.js +1 -1
  271. package/lib/components/Image/Image.js +1 -1
  272. package/lib/components/Image/ImgViewer.js +1 -1
  273. package/lib/components/InfoView/InfoView.js +1 -1
  274. package/lib/components/Layout/Content.js +1 -1
  275. package/lib/components/Layout/Footer.js +1 -1
  276. package/lib/components/Layout/Header.js +1 -1
  277. package/lib/components/Layout/Layout.js +1 -1
  278. package/lib/components/Layout/Sider.js +1 -1
  279. package/lib/components/Link/Link.js +1 -1
  280. package/lib/components/List/List.js +1 -1
  281. package/lib/components/List/ListItemMeta.js +1 -1
  282. package/lib/components/LoadingBar/LoadingBar.js +1 -1
  283. package/lib/components/Mask/Mask.d.ts +2 -1
  284. package/lib/components/Mask/Mask.js +6 -2
  285. package/lib/components/Mask/Mask.js.map +1 -1
  286. package/lib/components/Mask/index.d.ts +5 -2
  287. package/lib/components/Mention/Mention.js +1 -1
  288. package/lib/components/Mention/MentionsSelect.js +1 -1
  289. package/lib/components/Menu/MenuDivider.js +1 -1
  290. package/lib/components/Menu/MenuItem.js +1 -1
  291. package/lib/components/Menu/MenuItemGroup.js +1 -1
  292. package/lib/components/Menu/SubMenu.js +1 -1
  293. package/lib/components/Message/Message.type.d.ts +1 -0
  294. package/lib/components/Modal/ConfirmDialog.js +1 -1
  295. package/lib/components/Modal/Modal.js +1 -1
  296. package/lib/components/Notification/Notice.js +1 -1
  297. package/lib/components/Notification/Notification.js +1 -1
  298. package/lib/components/PageHeader/PageHeader.js +1 -1
  299. package/lib/components/Pagination/Pager.js +1 -1
  300. package/lib/components/PopConfirm/PopConfirm.js +1 -1
  301. package/lib/components/Popover/Popover.js +1 -1
  302. package/lib/components/Progress/Line.js +1 -1
  303. package/lib/components/Progress/Progress.js +1 -1
  304. package/lib/components/Progress/Water.js +1 -1
  305. package/lib/components/Radio/Radio.js +5 -4
  306. package/lib/components/Radio/Radio.js.map +1 -1
  307. package/lib/components/Radio/Radio.type.d.ts +4 -0
  308. package/lib/components/Radio/Radio.type.js +4 -0
  309. package/lib/components/Radio/Radio.type.js.map +1 -1
  310. package/lib/components/Radio/Radio.vue.d.ts +9 -0
  311. package/lib/components/Radio/index.d.ts +15 -0
  312. package/lib/components/Rate/Rate.js +1 -1
  313. package/lib/components/Rate/Star.js +1 -1
  314. package/lib/components/Result/Result.js +1 -1
  315. package/lib/components/Select/DropdownMenu.js +1 -1
  316. package/lib/components/Select/RefSelect.js +1 -1
  317. package/lib/components/Select/Selection/Input.js +1 -1
  318. package/lib/components/Select/Selection/Multiple.js +1 -1
  319. package/lib/components/Select/Selection/Selection.js +1 -1
  320. package/lib/components/Select/Selection/Single.js +1 -1
  321. package/lib/components/Skeleton/Skeleton.js +1 -1
  322. package/lib/components/Skeleton/SkeletonItem.js +1 -1
  323. package/lib/components/Slider/Handle.js +1 -1
  324. package/lib/components/Slider/Marks.js +1 -1
  325. package/lib/components/Slider/Slider.d.ts +0 -20
  326. package/lib/components/Slider/Slider.js +1 -2
  327. package/lib/components/Slider/Slider.js.map +1 -1
  328. package/lib/components/Slider/Slider.type.d.ts +0 -9
  329. package/lib/components/Slider/Slider.type.js +0 -13
  330. package/lib/components/Slider/Slider.type.js.map +1 -1
  331. package/lib/components/Slider/Steps.js +1 -1
  332. package/lib/components/Slider/index.d.ts +0 -33
  333. package/lib/components/Spin/Spin.js +1 -1
  334. package/lib/components/Statistic/Statistic.js +1 -1
  335. package/lib/components/Steps/Step.js +1 -1
  336. package/lib/components/Steps/Steps.js +1 -1
  337. package/lib/components/Switch/Switch.js +1 -1
  338. package/lib/components/Table/BaseTable.js +21 -7
  339. package/lib/components/Table/BaseTable.js.map +1 -1
  340. package/lib/components/Table/BaseTable.vue.d.ts +48 -13
  341. package/lib/components/Table/BodyTable.js +1 -1
  342. package/lib/components/Table/BodyTable.vue.d.ts +48 -13
  343. package/lib/components/Table/HeadTable.js +1 -1
  344. package/lib/components/Table/HeadTable.vue.d.ts +48 -13
  345. package/lib/components/Table/Table.js +8 -9
  346. package/lib/components/Table/Table.js.map +1 -1
  347. package/lib/components/Table/Table.type.d.ts +7 -5
  348. package/lib/components/Table/Table.type.js.map +1 -1
  349. package/lib/components/Table/Table.vue.d.ts +101 -31
  350. package/lib/components/Table/TableBox.js +1 -1
  351. package/lib/components/Table/TableBox.vue.d.ts +96 -26
  352. package/lib/components/Table/hooks/useTableResize.d.ts +1 -1
  353. package/lib/components/Table/hooks/useTableResize.js +11 -69
  354. package/lib/components/Table/hooks/useTableResize.js.map +1 -1
  355. package/lib/components/Table/tableUnits/ColGroup.js +9 -6
  356. package/lib/components/Table/tableUnits/ColGroup.js.map +1 -1
  357. package/lib/components/Table/tableUnits/DraggableIcon.js +1 -1
  358. package/lib/components/Table/tableUnits/ExpandIcon.js +2 -2
  359. package/lib/components/Table/tableUnits/ExpandIcon.js.map +1 -1
  360. package/lib/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  361. package/lib/components/Table/tableUnits/ExpandRows.js +1 -1
  362. package/lib/components/Table/tableUnits/ExpandRows.js.map +1 -1
  363. package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +23 -5
  364. package/lib/components/Table/tableUnits/FilterDropdown.js +1 -1
  365. package/lib/components/Table/tableUnits/SelectionBox.js +1 -1
  366. package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  367. package/lib/components/Table/tableUnits/SelectionCheckAll.js +1 -1
  368. package/lib/components/Table/tableUnits/TableBody.js +1 -1
  369. package/lib/components/Table/tableUnits/TableBody.vue.d.ts +46 -10
  370. package/lib/components/Table/tableUnits/TableCell.js +108 -95
  371. package/lib/components/Table/tableUnits/TableCell.js.map +1 -1
  372. package/lib/components/Table/tableUnits/TableCell.vue.d.ts +22 -4
  373. package/lib/components/Table/tableUnits/TableHeader.js +1 -1
  374. package/lib/components/Table/tableUnits/TableHeaderRow.js +1 -1
  375. package/lib/components/Table/tableUnits/TableRow.js +1 -1
  376. package/lib/components/Table/tableUnits/TableRow.vue.d.ts +23 -5
  377. package/lib/components/Table/tableUnits/TableSummaryRow.js +1 -1
  378. package/lib/components/Tabs/TabBar.js +1 -1
  379. package/lib/components/Tabs/TabNav.js +1 -1
  380. package/lib/components/Tabs/TabPane.js +1 -1
  381. package/lib/components/Tag/Tag.js +7 -10
  382. package/lib/components/Tag/Tag.js.map +1 -1
  383. package/lib/components/Tag/Tag.type.d.ts +0 -4
  384. package/lib/components/Tag/Tag.type.js +0 -4
  385. package/lib/components/Tag/Tag.type.js.map +1 -1
  386. package/lib/components/Tag/Tag.vue.d.ts +7 -20
  387. package/lib/components/Tag/index.d.ts +21 -48
  388. package/lib/components/ThemePanel/ThemePanel.js +1 -1
  389. package/lib/components/TimePicker/Panel/SelectList.js +1 -1
  390. package/lib/components/TimePicker/Panel/TimePanel.js +1 -1
  391. package/lib/components/TimePicker/Panel/TimeRangePane.js +1 -1
  392. package/lib/components/TimePicker/TimePicker.js +1 -1
  393. package/lib/components/TimePicker/Trigger/TimePickerInput.js +1 -1
  394. package/lib/components/TimePicker/Trigger/TimePickerText.js +1 -1
  395. package/lib/components/TimePicker/Trigger/TimeRangeInput.js +1 -1
  396. package/lib/components/Timeline/TimelineItem.js +1 -1
  397. package/lib/components/Toggle/Toggle.js +1 -1
  398. package/lib/components/Tooltip/Tooltip.js +1 -1
  399. package/lib/components/Transfer/Operation.js +1 -1
  400. package/lib/components/Transfer/Transfer.js +1 -1
  401. package/lib/components/Transfer/TransferList.js +1 -1
  402. package/lib/components/Transfer/TransferListItem.js +1 -1
  403. package/lib/components/Tree/SubTree.js +1 -1
  404. package/lib/components/Tree/Tree.js +1 -1
  405. package/lib/components/Tree/TreeNode.js +1 -1
  406. package/lib/components/TreeSelect/TreeSelect.js +1 -1
  407. package/lib/components/TreeSelect/TreeSelect.vue.d.ts +1 -1
  408. package/lib/components/TreeSelect/index.d.ts +3 -3
  409. package/lib/components/Upload/UploadDragger.js +1 -1
  410. package/lib/components/Upload/UploadList.js +1 -1
  411. package/lib/components/Upload/Uploader.js +1 -1
  412. package/lib/components/VirtualList/ListContent.js +1 -1
  413. package/lib/components/VirtualList/VirtualList.js +1 -1
  414. package/lib/components/VirtualList/VirtualScrollBar.js +1 -1
  415. package/lib/components/base/HighlightText.js +1 -1
  416. package/lib/components/base/RenderEmpty.js +1 -1
  417. package/lib/components/base/ResizeObserver.js +1 -1
  418. package/lib/components/base/ResizeObserver.js.map +1 -1
  419. package/package.json +1 -1
  420. package/styles/components/badge/index.css +1 -1
  421. package/styles/components/badge/index.less +14 -48
  422. package/styles/components/badge/var.less +7 -17
  423. package/styles/components/drawer/index.css +1 -1
  424. package/styles/components/drawer/index.less +43 -49
  425. package/styles/components/drawer/var.less +7 -20
  426. package/styles/components/dropdown/index.css +1 -1
  427. package/styles/components/dropdown/index.less +2 -3
  428. package/styles/components/slider/index.css +1 -1
  429. package/styles/components/slider/index.less +36 -156
  430. package/styles/components/slider/var.less +5 -33
  431. package/styles/components/table/index.css +1 -1
  432. package/styles/components/table/index.less +106 -242
  433. package/styles/components/table/var.less +16 -31
  434. package/styles/components/tag/index.css +1 -1
  435. package/styles/components/tag/index.less +12 -25
  436. package/styles/components/tag/var.less +9 -67
  437. package/styles/cssVariable.less +0 -1
  438. package/styles/index.css +1 -1
  439. package/styles/mixins/index.less +0 -1
  440. package/types/components/Calendar/Calendar.vue.d.ts +15 -0
  441. package/types/components/Calendar/Header.vue.d.ts +15 -0
  442. package/types/components/Calendar/index.d.ts +30 -0
  443. package/types/components/Drawer/Drawer.d.ts +9 -0
  444. package/types/components/Drawer/Drawer.type.d.ts +4 -0
  445. package/types/components/Drawer/index.d.ts +15 -0
  446. package/types/components/Mask/Mask.d.ts +2 -1
  447. package/types/components/Mask/index.d.ts +5 -2
  448. package/types/components/Message/Message.type.d.ts +1 -0
  449. package/types/components/Radio/Radio.type.d.ts +4 -0
  450. package/types/components/Radio/Radio.vue.d.ts +9 -0
  451. package/types/components/Radio/index.d.ts +15 -0
  452. package/types/components/Slider/Slider.d.ts +0 -20
  453. package/types/components/Slider/Slider.type.d.ts +0 -9
  454. package/types/components/Slider/index.d.ts +0 -33
  455. package/types/components/Table/BaseTable.vue.d.ts +48 -13
  456. package/types/components/Table/BodyTable.vue.d.ts +48 -13
  457. package/types/components/Table/HeadTable.vue.d.ts +48 -13
  458. package/types/components/Table/Table.type.d.ts +7 -5
  459. package/types/components/Table/Table.vue.d.ts +101 -31
  460. package/types/components/Table/TableBox.vue.d.ts +96 -26
  461. package/types/components/Table/hooks/useTableResize.d.ts +1 -1
  462. package/types/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  463. package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +23 -5
  464. package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  465. package/types/components/Table/tableUnits/TableBody.vue.d.ts +46 -10
  466. package/types/components/Table/tableUnits/TableCell.vue.d.ts +22 -4
  467. package/types/components/Table/tableUnits/TableRow.vue.d.ts +23 -5
  468. package/types/components/Tag/Tag.type.d.ts +0 -4
  469. package/types/components/Tag/Tag.vue.d.ts +7 -20
  470. package/types/components/Tag/index.d.ts +21 -48
  471. package/types/components/TreeSelect/TreeSelect.vue.d.ts +1 -1
  472. package/types/components/TreeSelect/index.d.ts +3 -3
  473. package/uxd-ui.css +1 -1
  474. package/uxd-ui.esm.min.mjs +6 -6
  475. package/uxd-ui.esm.mjs +191 -226
  476. package/uxd-ui.umd.js +191 -226
  477. package/uxd-ui.umd.min.js +6 -6
  478. package/styles/mixins/close.less +0 -12
@@ -188,7 +188,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
188
188
  ]) : vue.createCommentVNode("v-if", true)
189
189
  ], 6);
190
190
  }
191
- var Sider = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Layout/Sider.vue"]]);
191
+ var Sider = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Layout\\Sider.vue"]]);
192
192
 
193
193
  exports["default"] = Sider;
194
194
  //# sourceMappingURL=Sider.js.map
@@ -80,7 +80,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
80
80
  ])
81
81
  ], 10, _hoisted_1);
82
82
  }
83
- var Link = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Link/Link.vue"]]);
83
+ var Link = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Link\\Link.vue"]]);
84
84
 
85
85
  exports["default"] = Link;
86
86
  //# sourceMappingURL=Link.js.map
@@ -103,7 +103,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
103
  ], 2)) : vue.createCommentVNode("v-if", true)
104
104
  ], 2);
105
105
  }
106
- var List = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/List/List.vue"]]);
106
+ var List = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\List\\List.vue"]]);
107
107
 
108
108
  exports["default"] = List;
109
109
  //# sourceMappingURL=List.js.map
@@ -56,7 +56,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
56
56
  ], 2)
57
57
  ], 2);
58
58
  }
59
- var ListItemMeta = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/List/ListItemMeta.vue"]]);
59
+ var ListItemMeta = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\List\\ListItemMeta.vue"]]);
60
60
 
61
61
  exports["default"] = ListItemMeta;
62
62
  //# sourceMappingURL=ListItemMeta.js.map
@@ -63,7 +63,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
63
63
  _: 1
64
64
  });
65
65
  }
66
- var LoadingBar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/LoadingBar/LoadingBar.vue"]]);
66
+ var LoadingBar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\LoadingBar\\LoadingBar.vue"]]);
67
67
 
68
68
  exports["default"] = LoadingBar;
69
69
  //# sourceMappingURL=LoadingBar.js.map
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
58
58
  default: string;
59
59
  validator: (value: any) => boolean;
60
60
  };
61
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-show-mask-change"[], "after-show-mask-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "after-show-mask-change")[], "click" | "after-show-mask-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
62
62
  show: BooleanConstructor;
63
63
  zIndex: (StringConstructor | NumberConstructor)[];
64
64
  duration: (StringConstructor | NumberConstructor)[];
@@ -86,6 +86,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
86
86
  validator: (value: any) => boolean;
87
87
  };
88
88
  }>> & Readonly<{
89
+ onClick?: (...args: any[]) => any;
89
90
  "onAfter-show-mask-change"?: (...args: any[]) => any;
90
91
  }>, {
91
92
  show: boolean;
@@ -55,7 +55,7 @@ const maskProps = {
55
55
  var Mask = vue.defineComponent({
56
56
  name: "UMask",
57
57
  props: maskProps,
58
- emits: ["after-show-mask-change"],
58
+ emits: ["after-show-mask-change", "click"],
59
59
  setup(props, {
60
60
  slots,
61
61
  emit,
@@ -86,6 +86,9 @@ var Mask = vue.defineComponent({
86
86
  const maskColor = props.color === "white" ? "255, 255, 255" : "0, 0, 0";
87
87
  return `rgba(${maskColor}, ${opacity})`;
88
88
  });
89
+ const handleClick = () => {
90
+ emit("click");
91
+ };
89
92
  const renderMask = lazyRender(() => {
90
93
  const style = {
91
94
  backgroundColor: maskBackground.value,
@@ -101,7 +104,8 @@ var Mask = vue.defineComponent({
101
104
  "class": prefixCls.value,
102
105
  "onTouchmove": props.preventScroll ? handleTouchMove : () => {
103
106
  },
104
- "onAnimationend": handleAnimationend
107
+ "onAnimationend": handleAnimationend,
108
+ "onClick": handleClick
105
109
  }, [useShouldRender.useShouldRender(props.show, props.desdroyOnClose, animationEnd.value, slots.default)]), [[vue.vShow, props.show]]);
106
110
  });
107
111
  return () => vue.createVNode(vue.Transition, {
@@ -1 +1 @@
1
- {"version":3,"file":"Mask.js","sources":["../../../../src/components/Mask/Mask.tsx"],"sourcesContent":["import { ref, computed, Transition, defineComponent } from 'vue';\nimport type { PropType, CSSProperties } from 'vue';\nimport { isValid, oneOf, getPropStyle, preventDefault } from '../../utils';\nimport { useGlobalConfig, useLazyRender, useShouldRender } from '../base/hooks';\nimport type { OpacityMap, MaskColor, MaskOpacity } from './Mask.type';\n\nexport const maskColors = ['black', 'white'] as const;\nexport const maskOpacity = ['lighter', 'default', 'darker'] as const;\nexport const opacityMap: OpacityMap = {\n lighter: 0.35,\n default: 0.55,\n darker: 0.75\n};\n\nexport const maskProps = {\n show: Boolean,\n zIndex: [Number, String],\n duration: [Number, String],\n preventScroll: {\n type: Boolean,\n default: true\n },\n lazyRender: {\n type: Boolean,\n default: true\n },\n desdroyOnClose: {\n type: Boolean,\n default: true\n },\n customStyle: Object as PropType<CSSProperties>,\n color: {\n type: String as PropType<MaskColor>,\n default: 'black',\n validator: oneOf(maskColors)\n },\n opacity: {\n type: [Number, String],\n default: 'default',\n validator: (value: any) => {\n if (typeof value === 'string') {\n return maskOpacity.includes(value as MaskOpacity);\n }\n return value >= 0 && value <= 1;\n }\n }\n};\n\nexport default defineComponent({\n name: 'UMask',\n props: maskProps,\n emits: ['after-show-mask-change'],\n setup(props, { slots, emit, expose }) {\n const { prefixCls } = useGlobalConfig('mask');\n const maskRef = ref<HTMLElement | null>(null);\n const animationEnd = ref(false);\n const lazyRender = useLazyRender(() => props.show || !props.lazyRender);\n expose({ maskRef, animationEnd });\n\n const handleTouchMove = (event: Event) => {\n preventDefault(event, true);\n };\n\n const handleAnimationend = (event: AnimationEvent) => {\n if (event.target === maskRef.value && event.animationName.match(/uuiFade$/)) {\n animationEnd.value = !props.show;\n emit('after-show-mask-change', props.show);\n }\n };\n\n const maskBackground = computed(() => {\n const opacity = opacityMap[props.opacity as keyof OpacityMap] ?? props.opacity;\n const maskColor = props.color === 'white' ? '255, 255, 255' : '0, 0, 0';\n return `rgba(${maskColor}, ${opacity})`;\n });\n\n const renderMask = lazyRender(() => {\n const style: CSSProperties = {\n backgroundColor: maskBackground.value,\n ...getPropStyle('zIndex', props.zIndex),\n ...props.customStyle\n };\n\n if (isValid(props.duration)) {\n style.animationDuration = `${props.duration}s`;\n }\n\n return (\n <div\n ref={maskRef}\n v-show={props.show}\n style={style}\n class={prefixCls.value}\n onTouchmove={props.preventScroll ? handleTouchMove : () => {}}\n onAnimationend={handleAnimationend}\n >\n {useShouldRender(props.show, props.desdroyOnClose, animationEnd.value, slots.default)}\n </div>\n );\n });\n\n return () => <Transition v-slots={{ default: renderMask }} name={`fade`} appear />;\n }\n});\n"],"names":["maskColors","maskOpacity","opacityMap","lighter","default","darker","maskProps","show","Boolean","zIndex","Number","String","duration","preventScroll","type","lazyRender","desdroyOnClose","customStyle","Object","color","validator","oneOf","opacity","value","includes","defineComponent","name","props","emits","setup","slots","emit","expose","prefixCls","useGlobalConfig","maskRef","ref","animationEnd","useLazyRender","handleTouchMove","event","preventDefault","handleAnimationend","target","animationName","match","maskBackground","computed","maskColor","renderMask","style","backgroundColor","getPropStyle","isValid","animationDuration","_withDirectives","_createVNode","useShouldRender","_vShow","Transition"],"mappings":"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"}
1
+ {"version":3,"file":"Mask.js","sources":["../../../../src/components/Mask/Mask.tsx"],"sourcesContent":["import { ref, computed, Transition, defineComponent } from 'vue';\nimport type { PropType, CSSProperties } from 'vue';\nimport { isValid, oneOf, getPropStyle, preventDefault } from '../../utils';\nimport { useGlobalConfig, useLazyRender, useShouldRender } from '../base/hooks';\nimport type { OpacityMap, MaskColor, MaskOpacity } from './Mask.type';\n\nexport const maskColors = ['black', 'white'] as const;\nexport const maskOpacity = ['lighter', 'default', 'darker'] as const;\nexport const opacityMap: OpacityMap = {\n lighter: 0.35,\n default: 0.55,\n darker: 0.75\n};\n\nexport const maskProps = {\n show: Boolean,\n zIndex: [Number, String],\n duration: [Number, String],\n preventScroll: {\n type: Boolean,\n default: true\n },\n lazyRender: {\n type: Boolean,\n default: true\n },\n desdroyOnClose: {\n type: Boolean,\n default: true\n },\n customStyle: Object as PropType<CSSProperties>,\n color: {\n type: String as PropType<MaskColor>,\n default: 'black',\n validator: oneOf(maskColors)\n },\n opacity: {\n type: [Number, String],\n default: 'default',\n validator: (value: any) => {\n if (typeof value === 'string') {\n return maskOpacity.includes(value as MaskOpacity);\n }\n return value >= 0 && value <= 1;\n }\n }\n};\n\nexport default defineComponent({\n name: 'UMask',\n props: maskProps,\n emits: ['after-show-mask-change', 'click'],\n setup(props, { slots, emit, expose }) {\n const { prefixCls } = useGlobalConfig('mask');\n const maskRef = ref<HTMLElement | null>(null);\n const animationEnd = ref(false);\n const lazyRender = useLazyRender(() => props.show || !props.lazyRender);\n expose({ maskRef, animationEnd });\n\n const handleTouchMove = (event: Event) => {\n preventDefault(event, true);\n };\n\n const handleAnimationend = (event: AnimationEvent) => {\n if (event.target === maskRef.value && event.animationName.match(/uuiFade$/)) {\n animationEnd.value = !props.show;\n emit('after-show-mask-change', props.show);\n }\n };\n\n const maskBackground = computed(() => {\n const opacity = opacityMap[props.opacity as keyof OpacityMap] ?? props.opacity;\n const maskColor = props.color === 'white' ? '255, 255, 255' : '0, 0, 0';\n return `rgba(${maskColor}, ${opacity})`;\n });\n\n const handleClick = () => {\n emit('click');\n };\n\n const renderMask = lazyRender(() => {\n const style: CSSProperties = {\n backgroundColor: maskBackground.value,\n ...getPropStyle('zIndex', props.zIndex),\n ...props.customStyle\n };\n\n if (isValid(props.duration)) {\n style.animationDuration = `${props.duration}s`;\n }\n\n return (\n <div\n ref={maskRef}\n v-show={props.show}\n style={style}\n class={prefixCls.value}\n onTouchmove={props.preventScroll ? handleTouchMove : () => {}}\n onAnimationend={handleAnimationend}\n onClick={handleClick}\n >\n {useShouldRender(props.show, props.desdroyOnClose, animationEnd.value, slots.default)}\n </div>\n );\n });\n\n return () => <Transition v-slots={{ default: renderMask }} name={`fade`} appear />;\n }\n});\n"],"names":["maskColors","maskOpacity","opacityMap","lighter","default","darker","maskProps","show","Boolean","zIndex","Number","String","duration","preventScroll","type","lazyRender","desdroyOnClose","customStyle","Object","color","validator","oneOf","opacity","value","includes","defineComponent","name","props","emits","setup","slots","emit","expose","prefixCls","useGlobalConfig","maskRef","ref","animationEnd","useLazyRender","handleTouchMove","event","preventDefault","handleAnimationend","target","animationName","match","maskBackground","computed","maskColor","handleClick","renderMask","style","backgroundColor","getPropStyle","isValid","animationDuration","_withDirectives","_createVNode","useShouldRender","_vShow","Transition"],"mappings":"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"}
@@ -28,8 +28,9 @@ export declare const UMask: {
28
28
  validator: (value: any) => boolean;
29
29
  };
30
30
  }>> & Readonly<{
31
+ onClick?: (...args: any[]) => any;
31
32
  "onAfter-show-mask-change"?: (...args: any[]) => any;
32
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-show-mask-change"[], import("vue").PublicProps, {
33
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "after-show-mask-change")[], import("vue").PublicProps, {
33
34
  color: import("./Mask.type").MaskColor;
34
35
  show: boolean;
35
36
  opacity: string | number;
@@ -71,6 +72,7 @@ export declare const UMask: {
71
72
  validator: (value: any) => boolean;
72
73
  };
73
74
  }>> & Readonly<{
75
+ onClick?: (...args: any[]) => any;
74
76
  "onAfter-show-mask-change"?: (...args: any[]) => any;
75
77
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
76
78
  color: import("./Mask.type").MaskColor;
@@ -111,8 +113,9 @@ export declare const UMask: {
111
113
  validator: (value: any) => boolean;
112
114
  };
113
115
  }>> & Readonly<{
116
+ onClick?: (...args: any[]) => any;
114
117
  "onAfter-show-mask-change"?: (...args: any[]) => any;
115
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-show-mask-change"[], "after-show-mask-change", {
118
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "after-show-mask-change")[], "click" | "after-show-mask-change", {
116
119
  color: import("./Mask.type").MaskColor;
117
120
  show: boolean;
118
121
  opacity: string | number;
@@ -522,7 +522,7 @@ const _sfc_main = vue.defineComponent({
522
522
  };
523
523
  }
524
524
  });
525
- var Mention = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Mention/Mention.vue"]]);
525
+ var Mention = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Mention\\Mention.vue"]]);
526
526
 
527
527
  exports["default"] = Mention;
528
528
  //# sourceMappingURL=Mention.js.map
@@ -114,7 +114,7 @@ const _sfc_main = {
114
114
  };
115
115
  }
116
116
  };
117
- var MentionsSelect = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Mention/MentionsSelect.vue"]]);
117
+ var MentionsSelect = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Mention\\MentionsSelect.vue"]]);
118
118
 
119
119
  exports["default"] = MentionsSelect;
120
120
  //# sourceMappingURL=MentionsSelect.js.map
@@ -19,7 +19,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
19
19
  class: vue.normalizeClass([`${_ctx.rootPrefixCls}-item-divider`])
20
20
  }, null, 2);
21
21
  }
22
- var MenuDivider = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Menu/MenuDivider.vue"]]);
22
+ var MenuDivider = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Menu\\MenuDivider.vue"]]);
23
23
 
24
24
  exports["default"] = MenuDivider;
25
25
  //# sourceMappingURL=MenuDivider.js.map
@@ -130,7 +130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
130
130
  _: 3
131
131
  }, 8, ["title", "disabled", "class"]);
132
132
  }
133
- var MenuItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Menu/MenuItem.vue"]]);
133
+ var MenuItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Menu\\MenuItem.vue"]]);
134
134
 
135
135
  exports["default"] = MenuItem;
136
136
  //# sourceMappingURL=MenuItem.js.map
@@ -34,7 +34,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
34
34
  ], 2)
35
35
  ], 2);
36
36
  }
37
- var MenuItemGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Menu/MenuItemGroup.vue"]]);
37
+ var MenuItemGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Menu\\MenuItemGroup.vue"]]);
38
38
 
39
39
  exports["default"] = MenuItemGroup;
40
40
  //# sourceMappingURL=MenuItemGroup.js.map
@@ -258,7 +258,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
258
258
  }, 8, ["aria-owns", "popup-class", "prefix", "placement", "offset", "trigger", "mouse-enter-delay", "mouse-leave-delay", "transition-name", "get-popup-container", "onPopupVisibleChange", "onClick"]))
259
259
  ], 2);
260
260
  }
261
- var SubMenu = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Menu/SubMenu.vue"]]);
261
+ var SubMenu = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Menu\\SubMenu.vue"]]);
262
262
 
263
263
  exports["default"] = SubMenu;
264
264
  //# sourceMappingURL=SubMenu.js.map
@@ -12,6 +12,7 @@ export interface MessageParams {
12
12
  class?: string;
13
13
  closable?: boolean;
14
14
  background?: boolean;
15
+ showIcon?: boolean;
15
16
  }
16
17
  export interface MessageOption {
17
18
  top?: string;
@@ -161,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
161
161
  _: 1
162
162
  }, 8, ["id", "visible", "custom-class", "width", "size", "after-close", "closable", "onClose"]);
163
163
  }
164
- var ConfirmDialog = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Modal/ConfirmDialog.vue"]]);
164
+ var ConfirmDialog = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Modal\\ConfirmDialog.vue"]]);
165
165
 
166
166
  exports["default"] = ConfirmDialog;
167
167
  //# sourceMappingURL=ConfirmDialog.js.map
@@ -352,7 +352,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
352
352
  ], 16, _hoisted_1)
353
353
  ], 8, ["to"]);
354
354
  }
355
- var Modal = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Modal/Modal.vue"]]);
355
+ var Modal = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Modal\\Modal.vue"]]);
356
356
 
357
357
  exports["default"] = Modal;
358
358
  //# sourceMappingURL=Modal.js.map
@@ -126,7 +126,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
126
126
  ], 2)
127
127
  ], 34);
128
128
  }
129
- var Notice = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Notification/Notice.vue"]]);
129
+ var Notice = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Notification\\Notice.vue"]]);
130
130
 
131
131
  exports["default"] = Notice;
132
132
  //# sourceMappingURL=Notice.js.map
@@ -103,7 +103,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
103
  }, 8, ["name", "leave-active-class"])
104
104
  ], 2);
105
105
  }
106
- var Notification = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Notification/Notification.vue"]]);
106
+ var Notification = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Notification\\Notification.vue"]]);
107
107
 
108
108
  exports["default"] = Notification;
109
109
  //# sourceMappingURL=Notification.js.map
@@ -123,7 +123,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
123
  ], 2)) : vue.createCommentVNode("v-if", true)
124
124
  ], 2);
125
125
  }
126
- var PageHeader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/PageHeader/PageHeader.vue"]]);
126
+ var PageHeader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\PageHeader\\PageHeader.vue"]]);
127
127
 
128
128
  exports["default"] = PageHeader;
129
129
  //# sourceMappingURL=PageHeader.js.map
@@ -113,7 +113,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
113
113
  ], 2)) : vue.createCommentVNode("v-if", true)
114
114
  ], 42, _hoisted_1);
115
115
  }
116
- var Pager = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Pagination/Pager.vue"]]);
116
+ var Pager = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Pagination\\Pager.vue"]]);
117
117
 
118
118
  exports["default"] = Pager;
119
119
  //# sourceMappingURL=Pager.js.map
@@ -132,7 +132,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
132
132
  _: 3
133
133
  }, 8, ["visible", "width", "placement", "dropdown-class", "dropdown-style", "disabled", "offset", "show-arrow", "destroy-on-hide", "onVisibleChange"]);
134
134
  }
135
- var PopConfirm = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/PopConfirm/PopConfirm.vue"]]);
135
+ var PopConfirm = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\PopConfirm\\PopConfirm.vue"]]);
136
136
 
137
137
  exports["default"] = PopConfirm;
138
138
  //# sourceMappingURL=PopConfirm.js.map
@@ -151,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
151
151
  _: 3
152
152
  }, 8, ["class", "style", "prefix-cls", "popup-class", "popup-style", "visible", "placement", "trigger", "mouse-enter-delay", "offset", "destroy-popup-on-hide", "onPopupVisibleChange"]));
153
153
  }
154
- var Popover = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Popover/Popover.vue"]]);
154
+ var Popover = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Popover\\Popover.vue"]]);
155
155
 
156
156
  exports["default"] = Popover;
157
157
  //# sourceMappingURL=Popover.js.map
@@ -167,7 +167,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
167
167
  ], 2)) : vue.createCommentVNode("v-if", true)
168
168
  ], 2);
169
169
  }
170
- var ULine = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Progress/Line.vue"]]);
170
+ var ULine = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Progress\\Line.vue"]]);
171
171
 
172
172
  exports["default"] = ULine;
173
173
  //# sourceMappingURL=Line.js.map
@@ -57,7 +57,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
57
57
  _: 3
58
58
  }, 8, ["percent", "success-percent", "status", "hide-info", "stroke-width", "stroke-color", "vertical", "text-inside", "data-color"]);
59
59
  }
60
- var Progress = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Progress/Progress.vue"]]);
60
+ var Progress = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Progress\\Progress.vue"]]);
61
61
 
62
62
  exports["default"] = Progress;
63
63
  //# sourceMappingURL=Progress.js.map
@@ -128,7 +128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
128
128
  ], 2)
129
129
  ], 2);
130
130
  }
131
- var UWater = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Progress/Water.vue"]]);
131
+ var UWater = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Progress\\Water.vue"]]);
132
132
 
133
133
  exports["default"] = UWater;
134
134
  //# sourceMappingURL=Water.js.map
@@ -140,16 +140,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
140
140
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleOnBlur && _ctx.handleOnBlur(...args))
141
141
  }, null, 42, _hoisted_1)
142
142
  ], 2),
143
- vue.createElementVNode("span", {
143
+ _ctx.label || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
144
+ key: 0,
144
145
  class: vue.normalizeClass([`${_ctx.prefixCls}-label`])
145
146
  }, [
146
147
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
147
- vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
148
+ vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
148
149
  ])
149
- ], 2)
150
+ ], 2)) : vue.createCommentVNode("v-if", true)
150
151
  ], 2);
151
152
  }
152
- var Radio = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Radio/Radio.vue"]]);
153
+ var Radio = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Radio\\Radio.vue"]]);
153
154
 
154
155
  exports["default"] = Radio;
155
156
  //# sourceMappingURL=Radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n `${prefixCls}-wrap-${computedSize}`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled\n }\n ]\"\n >\n <span v-show=\"showInput\" :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\" />\n <input\n type=\"radio\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"groupName\"\n @change=\"change\"\n @focus=\"handleOnFocus\"\n @blur=\"handleOnBlur\"\n />\n </span>\n <span :class=\"[`${prefixCls}-label`]\">\n <slot>{{ value }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { type RadioGroupContext, radioProps, radioEmits } from './Radio.type';\n\nexport default defineComponent({\n name: 'URadio',\n props: radioProps,\n emits: radioEmits,\n setup(props, { emit }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('radio');\n const radioGroupContext = inject<RadioGroupContext | null>('radioGroupContext', null);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const computedChecked = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.stateValue.value === props.value;\n }\n return !!stateValue.value;\n });\n const groupName = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.name.value;\n }\n return props.name;\n });\n\n const computedSize = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.size.value || props.size;\n }\n return props.size;\n });\n const computedDisabled = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n const showInput = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.computedType?.value === 'default';\n }\n return true;\n });\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n stateValue.value = event.target.checked;\n const value = stateValue.value ? props.trueValue : props.falseValue;\n if (radioGroupContext) {\n if (props.value !== undefined) {\n radioGroupContext.change(props.value);\n }\n } else {\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleOnFocus = () => {\n if (radioGroupContext && radioGroupContext.computedType && radioGroupContext.computedType.value === 'default') {\n focusInner.value = true;\n } else {\n focusWrap.value = true;\n }\n };\n const handleOnBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n return {\n prefixCls,\n computedSize,\n computedDisabled,\n focusWrap,\n focusInner,\n computedChecked,\n showInput,\n groupName,\n change,\n handleOnFocus,\n handleOnBlur\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["defineComponent","radioProps","radioEmits","useGlobalConfig","inject","ref","computed","FormItemKey","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;AA8CA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAOC;AAAA,EACP,OAAOC;AAAA,EACP,MAAM,OAAO,EAAE,QAAQ;UAEf,EAAE,cAAcC,2BAAgB,OAAO;UACvC,oBAAoBC,WAAiC,qBAAqB,IAAI;UAE9E,YAAYC,QAAI,KAAK;UACrB,aAAaA,QAAI,KAAK;UACtB,aAAaA,QAAI,MAAM,cAAc,KAAK;UAE1C,kBAAkBC,aAAS,MAAM;UACjC,mBAAmB;eACd,kBAAkB,WAAW,UAAU,MAAM;AAAA;aAE/C,CAAC,CAAC,WAAW;AAAA,KACrB;UACK,YAAYA,aAAS,MAAM;UAC3B,mBAAmB;eACd,kBAAkB,KAAK;AAAA;aAEzB,MAAM;AAAA,KACd;UAEK,eAAeA,aAAS,MAAM;UAC9B,mBAAmB;eACd,kBAAkB,KAAK,SAAS,MAAM;AAAA;aAExC,MAAM;AAAA,KACd;UACK,mBAAmBA,aAAS,MAAM;UAClC,mBAAmB;eACd,kBAAkB,SAAS,SAAS,MAAM;AAAA;aAE5C,MAAM;AAAA,KACd;UAEK,YAAYA,aAAS,MAAM;AA7CrC;UA8CU,mBAAmB;iBACd,uBAAkB,iBAAlB,mBAAgC,WAAU;AAAA;aAE5C;AAAA,KACR;;MAGC,MAAM,MAAM;AAAA,MACZ,CAAC,OAAO;mBACK,QAAQ,OAAO,MAAM;AAAA;AAClC,MACA,EAAE,WAAW;AAAK;UAGd,EAAE,kBAAkBF,WAAwBG,mBAAa,EAAqB;UAC9E,SAAS,CAAC,UAAe;UACzB,MAAM,UAAU;eACX;AAAA;iBAEE,QAAQ,MAAM,OAAO;YAC1B,QAAQ,WAAW,QAAQ,MAAM,YAAY,MAAM;UACrD,mBAAmB;YACjB,MAAM,UAAU,QAAW;4BACX,OAAO,MAAM,KAAK;AAAA;AACtC,aACK;aACA,qBAAqB,KAAK;aAC1B,UAAU,OAAO,KAAK;YACvB,eAAe;wBACH,KAAK;AAAA;AACrB;AACF;UAEI,gBAAgB,MAAM;UACtB,qBAAqB,kBAAkB,gBAAgB,kBAAkB,aAAa,UAAU,WAAW;mBAClG,QAAQ;AAAA,aACd;kBACK,QAAQ;AAAA;AACpB;UAEI,eAAe,MAAM;gBACf,QAAQ;iBACP,QAAQ;AAAA;WAEd;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;0BA/ICC,uBAmCQ;IAlCL,OAAKC;SAAa;SAA2B,uBAAkB;;YAAoC,gCAA2B;YAA6B,iCAA4B;YAA8B,yBAAoB;;;;IAU1OC,uBAoBO;MAnBJ,OAAKD;QAAY;;cAAmC,2BAAsB;cAA+B,4BAAuB;;;;yBAQjIC,uBAAmG;QAAzE,OAAKD,uBAAM,wBAAS,MAAgB,yBAAoB;;oBAApE,cAAS;AAAA;MACvBC,uBASE;QARA,MAAK;AAAA,QACJ,OAAKD,sBAAK,sBAAS;AAAA,QACnB,UAAU;QACV,SAAS;QACT,MAAM;QACN,UAAM,uCAAE;QACR,SAAK,uCAAE;QACP,QAAI,uCAAE;;;IAGXC,uBAEO;MAFA,OAAKD,uBAAM,sBAAS;;MACzBE,eAAwB,4BAAxB,MAAwB;AAAA,gDAAf,UAAK;;;;;;;;;"}
1
+ {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n `${prefixCls}-wrap-${computedSize}`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled\n }\n ]\"\n >\n <span v-show=\"showInput\" :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\" />\n <input\n type=\"radio\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"groupName\"\n @change=\"change\"\n @focus=\"handleOnFocus\"\n @blur=\"handleOnBlur\"\n />\n </span>\n\n <span v-if=\"label || $slots.default\" :class=\"[`${prefixCls}-label`]\">\n <slot>{{ label }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { type RadioGroupContext, radioProps, radioEmits } from './Radio.type';\n\nexport default defineComponent({\n name: 'URadio',\n props: radioProps,\n emits: radioEmits,\n setup(props, { emit }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('radio');\n const radioGroupContext = inject<RadioGroupContext | null>('radioGroupContext', null);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const computedChecked = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.stateValue.value === props.value;\n }\n return !!stateValue.value;\n });\n const groupName = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.name.value;\n }\n return props.name;\n });\n\n const computedSize = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.size.value || props.size;\n }\n return props.size;\n });\n const computedDisabled = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n const showInput = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.computedType?.value === 'default';\n }\n return true;\n });\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n stateValue.value = event.target.checked;\n const value = stateValue.value ? props.trueValue : props.falseValue;\n if (radioGroupContext) {\n if (props.value !== undefined) {\n radioGroupContext.change(props.value);\n }\n } else {\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleOnFocus = () => {\n if (radioGroupContext && radioGroupContext.computedType && radioGroupContext.computedType.value === 'default') {\n focusInner.value = true;\n } else {\n focusWrap.value = true;\n }\n };\n const handleOnBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n return {\n prefixCls,\n computedSize,\n computedDisabled,\n focusWrap,\n focusInner,\n computedChecked,\n showInput,\n groupName,\n change,\n handleOnFocus,\n handleOnBlur\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["defineComponent","radioProps","radioEmits","useGlobalConfig","inject","ref","computed","FormItemKey","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;AA+CA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAOC;AAAA,EACP,OAAOC;AAAA,EACP,MAAM,OAAO,EAAE,QAAQ;UAEf,EAAE,cAAcC,2BAAgB,OAAO;UACvC,oBAAoBC,WAAiC,qBAAqB,IAAI;UAE9E,YAAYC,QAAI,KAAK;UACrB,aAAaA,QAAI,KAAK;UACtB,aAAaA,QAAI,MAAM,cAAc,KAAK;UAE1C,kBAAkBC,aAAS,MAAM;UACjC,mBAAmB;eACd,kBAAkB,WAAW,UAAU,MAAM;AAAA;aAE/C,CAAC,CAAC,WAAW;AAAA,KACrB;UACK,YAAYA,aAAS,MAAM;UAC3B,mBAAmB;eACd,kBAAkB,KAAK;AAAA;aAEzB,MAAM;AAAA,KACd;UAEK,eAAeA,aAAS,MAAM;UAC9B,mBAAmB;eACd,kBAAkB,KAAK,SAAS,MAAM;AAAA;aAExC,MAAM;AAAA,KACd;UACK,mBAAmBA,aAAS,MAAM;UAClC,mBAAmB;eACd,kBAAkB,SAAS,SAAS,MAAM;AAAA;aAE5C,MAAM;AAAA,KACd;UAEK,YAAYA,aAAS,MAAM;AA7CrC;UA8CU,mBAAmB;iBACd,uBAAkB,iBAAlB,mBAAgC,WAAU;AAAA;aAE5C;AAAA,KACR;;MAGC,MAAM,MAAM;AAAA,MACZ,CAAC,OAAO;mBACK,QAAQ,OAAO,MAAM;AAAA;AAClC,MACA,EAAE,WAAW;AAAK;UAGd,EAAE,kBAAkBF,WAAwBG,mBAAa,EAAqB;UAC9E,SAAS,CAAC,UAAe;UACzB,MAAM,UAAU;eACX;AAAA;iBAEE,QAAQ,MAAM,OAAO;YAC1B,QAAQ,WAAW,QAAQ,MAAM,YAAY,MAAM;UACrD,mBAAmB;YACjB,MAAM,UAAU,QAAW;4BACX,OAAO,MAAM,KAAK;AAAA;AACtC,aACK;aACA,qBAAqB,KAAK;aAC1B,UAAU,OAAO,KAAK;YACvB,eAAe;wBACH,KAAK;AAAA;AACrB;AACF;UAEI,gBAAgB,MAAM;UACtB,qBAAqB,kBAAkB,gBAAgB,kBAAkB,aAAa,UAAU,WAAW;mBAClG,QAAQ;AAAA,aACd;kBACK,QAAQ;AAAA;AACpB;UAEI,eAAe,MAAM;gBACf,QAAQ;iBACP,QAAQ;AAAA;WAEd;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;0BAhJCC,uBAoCQ;IAnCL,OAAKC;SAAa;SAA2B,uBAAkB;;YAAoC,gCAA2B;YAA6B,iCAA4B;YAA8B,yBAAoB;;;;IAU1OC,uBAoBO;MAnBJ,OAAKD;QAAY;;cAAmC,2BAAsB;cAA+B,4BAAuB;;;;yBAQjIC,uBAAmG;QAAzE,OAAKD,uBAAM,wBAAS,MAAgB,yBAAoB;;oBAApE,cAAS;AAAA;MACvBC,uBASE;QARA,MAAK;AAAA,QACJ,OAAKD,sBAAK,sBAAS;AAAA,QACnB,UAAU;QACV,SAAS;QACT,MAAM;QACN,UAAM,uCAAE;QACR,SAAK,uCAAE;QACP,QAAI,uCAAE;;;IAIC,cAAS,YAAO,4BAA5BD,uBAEO;;MAF+B,OAAKC,uBAAM,sBAAS;;MACxDE,eAAwB,4BAAxB,MAAwB;AAAA,gDAAf,UAAK;;;;;;;;;"}
@@ -29,6 +29,10 @@ export declare const radioProps: {
29
29
  type: (StringConstructor | NumberConstructor)[];
30
30
  default: string;
31
31
  };
32
+ label: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
32
36
  disabled: {
33
37
  type: BooleanConstructor;
34
38
  default: boolean;
@@ -24,6 +24,10 @@ const radioProps = {
24
24
  type: [String, Number],
25
25
  default: ""
26
26
  },
27
+ label: {
28
+ type: String,
29
+ default: ""
30
+ },
27
31
  disabled: {
28
32
  type: Boolean,
29
33
  default: false
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.type.js","sources":["../../../../src/components/Radio/Radio.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\n\nexport type RadioValueType = string | number | boolean;\nexport type RadioGroupValueType = string | number;\nexport const radioGroupType = ['default', 'button'] as const;\nexport type RaidoGroupType = (typeof radioGroupType)[number];\nexport const radioButtonType = ['border', 'fill', 'line', 'segment', 'card'] as const;\nexport type RadioButtonType = (typeof radioButtonType)[number];\nexport interface RadioGroupOption {\n value: RadioGroupValueType;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const radioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n trueValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n name: {\n type: String,\n default: ''\n }\n};\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>;\n\nexport const radioEmits = {\n change: (v: RadioValueType, e: Event) => (typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number') && e instanceof Event,\n 'update:modelValue': (v: RadioValueType) => typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number'\n};\n\nexport type RadioEmits = typeof radioEmits;\n\nlet seed = -1;\nconst getUuid = () => {\n const now = Date.now();\n seed += 1;\n return `uuiRadioGroup_${now}_${seed}`;\n};\n\nexport const radioGroupProps = {\n modelValue: {\n type: [String, Number] as PropType<RadioGroupValueType>,\n default: ''\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n type: {\n type: String as PropType<RaidoGroupType>,\n default: 'default',\n validator: oneOf(radioGroupType)\n },\n vertical: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: getUuid\n },\n options: {\n type: Array as PropType<RadioGroupOption[]>,\n default: () => [] as RadioGroupOption[]\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String as PropType<RadioButtonType>,\n default: 'border',\n validator: oneOf(radioButtonType)\n },\n disabled: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;\n\nexport const radioGroupEmits = {\n change: (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number',\n 'update:modelValue': (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number'\n};\n\nexport interface RadioGroupContext {\n stateValue: Ref<RadioGroupValueType>;\n name: Ref<string>;\n computedType: Ref<RadioButtonType & 'default'>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n change: (state: RadioGroupValueType) => void;\n}\n"],"names":["oneOf","normalSizeMap"],"mappings":";;;;;;;MAOa,iBAAiB,CAAC,WAAW,QAAQ;MAErC,kBAAkB,CAAC,UAAU,QAAQ,QAAQ,WAAW,MAAM;MAS9D,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,aAAa;AAAA,EACxB,QAAQ,CAAC,GAAmB,OAAc,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM,aAAa,aAAa;AAAA,EACpI,qBAAqB,CAAC,MAAsB,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM;AAC9G;AAIA,IAAI,OAAO;AACX,MAAM,UAAU,MAAM;AACpB,QAAM,MAAM,KAAK;AACjB,UAAQ;AACR,SAAO,iBAAiB,OAAO;AACjC;MAEa,kBAAkB;AAAA,EAC7B,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,eAAe;AAAA;AAClC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AAAA,EAC1E,qBAAqB,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AACzF;;;;;;;;;"}
1
+ {"version":3,"file":"Radio.type.js","sources":["../../../../src/components/Radio/Radio.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\n\nexport type RadioValueType = string | number | boolean;\nexport type RadioGroupValueType = string | number;\nexport const radioGroupType = ['default', 'button'] as const;\nexport type RaidoGroupType = (typeof radioGroupType)[number];\nexport const radioButtonType = ['border', 'fill', 'line', 'segment', 'card'] as const;\nexport type RadioButtonType = (typeof radioButtonType)[number];\nexport interface RadioGroupOption {\n value: RadioGroupValueType;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const radioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n trueValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n label: {\n type: String,\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n name: {\n type: String,\n default: ''\n }\n};\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>;\n\nexport const radioEmits = {\n change: (v: RadioValueType, e: Event) => (typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number') && e instanceof Event,\n 'update:modelValue': (v: RadioValueType) => typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number'\n};\n\nexport type RadioEmits = typeof radioEmits;\n\nlet seed = -1;\nconst getUuid = () => {\n const now = Date.now();\n seed += 1;\n return `uuiRadioGroup_${now}_${seed}`;\n};\n\nexport const radioGroupProps = {\n modelValue: {\n type: [String, Number] as PropType<RadioGroupValueType>,\n default: ''\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n type: {\n type: String as PropType<RaidoGroupType>,\n default: 'default',\n validator: oneOf(radioGroupType)\n },\n vertical: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: getUuid\n },\n options: {\n type: Array as PropType<RadioGroupOption[]>,\n default: () => [] as RadioGroupOption[]\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String as PropType<RadioButtonType>,\n default: 'border',\n validator: oneOf(radioButtonType)\n },\n disabled: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;\n\nexport const radioGroupEmits = {\n change: (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number',\n 'update:modelValue': (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number'\n};\n\nexport interface RadioGroupContext {\n stateValue: Ref<RadioGroupValueType>;\n name: Ref<string>;\n computedType: Ref<RadioButtonType & 'default'>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n change: (state: RadioGroupValueType) => void;\n}\n"],"names":["oneOf","normalSizeMap"],"mappings":";;;;;;;MAOa,iBAAiB,CAAC,WAAW,QAAQ;MAErC,kBAAkB,CAAC,UAAU,QAAQ,QAAQ,WAAW,MAAM;MAS9D,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,aAAa;AAAA,EACxB,QAAQ,CAAC,GAAmB,OAAc,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM,aAAa,aAAa;AAAA,EACpI,qBAAqB,CAAC,MAAsB,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM;AAC9G;AAIA,IAAI,OAAO;AACX,MAAM,UAAU,MAAM;AACpB,QAAM,MAAM,KAAK;AACjB,UAAQ;AACR,SAAO,iBAAiB,OAAO;AACjC;MAEa,kBAAkB;AAAA,EAC7B,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,eAAe;AAAA;AAClC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AAAA,EAC1E,qBAAqB,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AACzF;;;;;;;;;"}
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
15
15
  type: (StringConstructor | NumberConstructor)[];
16
16
  default: string;
17
17
  };
18
+ label: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
18
22
  disabled: {
19
23
  type: BooleanConstructor;
20
24
  default: boolean;
@@ -60,6 +64,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
60
64
  type: (StringConstructor | NumberConstructor)[];
61
65
  default: string;
62
66
  };
67
+ label: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
63
71
  disabled: {
64
72
  type: BooleanConstructor;
65
73
  default: boolean;
@@ -81,6 +89,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
89
  size: "small" | "default" | "large";
82
90
  disabled: boolean;
83
91
  modelValue: import("./Radio.type").RadioValueType;
92
+ label: string;
84
93
  value: string | number;
85
94
  trueValue: import("./Radio.type").RadioValueType;
86
95
  falseValue: import("./Radio.type").RadioValueType;
@@ -17,6 +17,10 @@ export declare const URadio: {
17
17
  type: (StringConstructor | NumberConstructor)[];
18
18
  default: string;
19
19
  };
20
+ label: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
20
24
  disabled: {
21
25
  type: BooleanConstructor;
22
26
  default: boolean;
@@ -53,6 +57,7 @@ export declare const URadio: {
53
57
  size: "small" | "default" | "large";
54
58
  disabled: boolean;
55
59
  modelValue: import("./Radio.type").RadioValueType;
60
+ label: string;
56
61
  value: string | number;
57
62
  trueValue: import("./Radio.type").RadioValueType;
58
63
  falseValue: import("./Radio.type").RadioValueType;
@@ -80,6 +85,10 @@ export declare const URadio: {
80
85
  type: (StringConstructor | NumberConstructor)[];
81
86
  default: string;
82
87
  };
88
+ label: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
83
92
  disabled: {
84
93
  type: BooleanConstructor;
85
94
  default: boolean;
@@ -113,6 +122,7 @@ export declare const URadio: {
113
122
  size: "small" | "default" | "large";
114
123
  disabled: boolean;
115
124
  modelValue: import("./Radio.type").RadioValueType;
125
+ label: string;
116
126
  value: string | number;
117
127
  trueValue: import("./Radio.type").RadioValueType;
118
128
  falseValue: import("./Radio.type").RadioValueType;
@@ -137,6 +147,10 @@ export declare const URadio: {
137
147
  type: (StringConstructor | NumberConstructor)[];
138
148
  default: string;
139
149
  };
150
+ label: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
140
154
  disabled: {
141
155
  type: BooleanConstructor;
142
156
  default: boolean;
@@ -173,6 +187,7 @@ export declare const URadio: {
173
187
  size: "small" | "default" | "large";
174
188
  disabled: boolean;
175
189
  modelValue: import("./Radio.type").RadioValueType;
190
+ label: string;
176
191
  value: string | number;
177
192
  trueValue: import("./Radio.type").RadioValueType;
178
193
  falseValue: import("./Radio.type").RadioValueType;
@@ -130,7 +130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
130
130
  }), 128))
131
131
  ], 46, _hoisted_1);
132
132
  }
133
- var Rate = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Rate/Rate.vue"]]);
133
+ var Rate = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Rate\\Rate.vue"]]);
134
134
 
135
135
  exports["default"] = Rate;
136
136
  //# sourceMappingURL=Rate.js.map
@@ -153,7 +153,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
153
153
  ], 32)
154
154
  ], 2);
155
155
  }
156
- var Star = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Rate/Star.vue"]]);
156
+ var Star = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Rate\\Star.vue"]]);
157
157
 
158
158
  exports["default"] = Star;
159
159
  //# sourceMappingURL=Star.js.map
@@ -89,7 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
89
89
  ], 2)
90
90
  ], 2);
91
91
  }
92
- var Result = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Result/Result.vue"]]);
92
+ var Result = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Result\\Result.vue"]]);
93
93
 
94
94
  exports["default"] = Result;
95
95
  //# sourceMappingURL=Result.js.map
@@ -385,7 +385,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
385
385
  vue.renderSlot(_ctx.$slots, "empty")
386
386
  ], 42, _hoisted_2));
387
387
  }
388
- var DropdownMenu = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Select/DropdownMenu.vue"]]);
388
+ var DropdownMenu = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\UXD-FE\\uxd-ui\\src\\components\\Select\\DropdownMenu.vue"]]);
389
389
 
390
390
  exports["default"] = DropdownMenu;
391
391
  //# sourceMappingURL=DropdownMenu.js.map