@wot-ui/ui 1.0.0 → 2.0.0-alpha.3

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 (385) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +134 -0
  3. package/attributes.json +1 -0
  4. package/changelog.md +53 -0
  5. package/common/AbortablePromise.ts +28 -0
  6. package/common/canvasHelper.ts +49 -0
  7. package/common/clickoutside.ts +25 -0
  8. package/common/event.ts +8 -0
  9. package/common/formatDate.ts +68 -0
  10. package/common/interceptor.ts +43 -0
  11. package/common/props.ts +53 -0
  12. package/common/util.ts +836 -0
  13. package/components/wd-action-sheet/index.scss +232 -0
  14. package/components/wd-action-sheet/types.ts +155 -0
  15. package/components/wd-action-sheet/wd-action-sheet.vue +176 -0
  16. package/components/wd-avatar/index.scss +150 -0
  17. package/components/wd-avatar/types.ts +98 -0
  18. package/components/wd-avatar/wd-avatar.vue +184 -0
  19. package/components/wd-avatar-group/index.scss +11 -0
  20. package/components/wd-avatar-group/types.ts +61 -0
  21. package/components/wd-avatar-group/wd-avatar-group.vue +115 -0
  22. package/components/wd-backtop/index.scss +67 -0
  23. package/components/wd-backtop/types.ts +66 -0
  24. package/components/wd-backtop/wd-backtop.vue +57 -0
  25. package/components/wd-badge/index.scss +116 -0
  26. package/components/wd-badge/types.ts +94 -0
  27. package/components/wd-badge/wd-badge.vue +78 -0
  28. package/components/wd-button/index.scss +436 -0
  29. package/components/wd-button/types.ts +204 -0
  30. package/components/wd-button/wd-button.vue +210 -0
  31. package/components/wd-calendar/index.scss +97 -0
  32. package/components/wd-calendar/types.ts +221 -0
  33. package/components/wd-calendar/wd-calendar.vue +339 -0
  34. package/components/wd-calendar-view/index.scss +41 -0
  35. package/components/wd-calendar-view/month/index.scss +144 -0
  36. package/components/wd-calendar-view/month/month.vue +389 -0
  37. package/components/wd-calendar-view/month/types.ts +70 -0
  38. package/components/wd-calendar-view/monthPanel/index.scss +84 -0
  39. package/components/wd-calendar-view/monthPanel/month-panel.vue +541 -0
  40. package/components/wd-calendar-view/monthPanel/types.ts +151 -0
  41. package/components/wd-calendar-view/types.ts +166 -0
  42. package/components/wd-calendar-view/utils.ts +318 -0
  43. package/components/wd-calendar-view/wd-calendar-view.vue +117 -0
  44. package/components/wd-calendar-view/year/index.scss +148 -0
  45. package/components/wd-calendar-view/year/types.ts +74 -0
  46. package/components/wd-calendar-view/year/year.vue +206 -0
  47. package/components/wd-calendar-view/yearPanel/index.scss +42 -0
  48. package/components/wd-calendar-view/yearPanel/types.ts +96 -0
  49. package/components/wd-calendar-view/yearPanel/year-panel.vue +249 -0
  50. package/components/wd-card/index.scss +104 -0
  51. package/components/wd-card/types.ts +47 -0
  52. package/components/wd-card/wd-card.vue +38 -0
  53. package/components/wd-cascader/index.scss +154 -0
  54. package/components/wd-cascader/types.ts +191 -0
  55. package/components/wd-cascader/wd-cascader.vue +589 -0
  56. package/components/wd-cell/index.scss +244 -0
  57. package/components/wd-cell/types.ts +205 -0
  58. package/components/wd-cell/wd-cell.vue +172 -0
  59. package/components/wd-cell-group/index.scss +53 -0
  60. package/components/wd-cell-group/types.ts +97 -0
  61. package/components/wd-cell-group/wd-cell-group.vue +48 -0
  62. package/components/wd-checkbox/index.scss +166 -0
  63. package/components/wd-checkbox/types.ts +118 -0
  64. package/components/wd-checkbox/wd-checkbox.vue +216 -0
  65. package/components/wd-checkbox-group/index.scss +5 -0
  66. package/components/wd-checkbox-group/types.ts +93 -0
  67. package/components/wd-checkbox-group/wd-checkbox-group.vue +148 -0
  68. package/components/wd-circle/index.scss +28 -0
  69. package/components/wd-circle/types.ts +54 -0
  70. package/components/wd-circle/wd-circle.vue +306 -0
  71. package/components/wd-col/index.scss +5 -0
  72. package/components/wd-col/types.ts +16 -0
  73. package/components/wd-col/wd-col.vue +83 -0
  74. package/components/wd-collapse/index.scss +71 -0
  75. package/components/wd-collapse/types.ts +68 -0
  76. package/components/wd-collapse/wd-collapse.vue +165 -0
  77. package/components/wd-collapse-item/index.scss +86 -0
  78. package/components/wd-collapse-item/types.ts +62 -0
  79. package/components/wd-collapse-item/wd-collapse-item.vue +184 -0
  80. package/components/wd-config-provider/index.scss +10 -0
  81. package/components/wd-config-provider/types.ts +2063 -0
  82. package/components/wd-config-provider/wd-config-provider.vue +61 -0
  83. package/components/wd-count-down/index.scss +16 -0
  84. package/components/wd-count-down/types.ts +58 -0
  85. package/components/wd-count-down/utils.ts +52 -0
  86. package/components/wd-count-down/wd-count-down.vue +62 -0
  87. package/components/wd-count-to/index.scss +25 -0
  88. package/components/wd-count-to/types.ts +121 -0
  89. package/components/wd-count-to/wd-count-to.vue +126 -0
  90. package/components/wd-curtain/index.scss +96 -0
  91. package/components/wd-curtain/types.ts +82 -0
  92. package/components/wd-curtain/wd-curtain.vue +172 -0
  93. package/components/wd-datetime-picker/index.scss +133 -0
  94. package/components/wd-datetime-picker/types.ts +198 -0
  95. package/components/wd-datetime-picker/wd-datetime-picker.vue +526 -0
  96. package/components/wd-datetime-picker-view/types.ts +171 -0
  97. package/components/wd-datetime-picker-view/util.ts +30 -0
  98. package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +402 -0
  99. package/components/wd-dialog/index.scss +281 -0
  100. package/components/wd-dialog/index.ts +168 -0
  101. package/components/wd-dialog/types.ts +452 -0
  102. package/components/wd-dialog/wd-dialog.vue +586 -0
  103. package/components/wd-divider/index.scss +122 -0
  104. package/components/wd-divider/types.ts +50 -0
  105. package/components/wd-divider/wd-divider.vue +54 -0
  106. package/components/wd-drop-menu/index.scss +90 -0
  107. package/components/wd-drop-menu/types.ts +38 -0
  108. package/components/wd-drop-menu/wd-drop-menu.vue +168 -0
  109. package/components/wd-drop-menu-item/index.scss +96 -0
  110. package/components/wd-drop-menu-item/types.ts +93 -0
  111. package/components/wd-drop-menu-item/wd-drop-menu-item.vue +205 -0
  112. package/components/wd-empty/index.scss +46 -0
  113. package/components/wd-empty/types.ts +37 -0
  114. package/components/wd-empty/wd-empty.vue +47 -0
  115. package/components/wd-fab/index.scss +124 -0
  116. package/components/wd-fab/types.ts +119 -0
  117. package/components/wd-fab/wd-fab.vue +322 -0
  118. package/components/wd-floating-panel/index.scss +73 -0
  119. package/components/wd-floating-panel/type.ts +32 -0
  120. package/components/wd-floating-panel/wd-floating-panel.vue +142 -0
  121. package/components/wd-form/adapters/zod.ts +56 -0
  122. package/components/wd-form/types.ts +147 -0
  123. package/components/wd-form/wd-form.vue +121 -0
  124. package/components/wd-form-item/index.scss +26 -0
  125. package/components/wd-form-item/types.ts +134 -0
  126. package/components/wd-form-item/wd-form-item.vue +182 -0
  127. package/components/wd-gap/index.scss +9 -0
  128. package/components/wd-gap/types.ts +26 -0
  129. package/components/wd-gap/wd-gap.vue +38 -0
  130. package/components/wd-grid/index.scss +11 -0
  131. package/components/wd-grid/types.ts +97 -0
  132. package/components/wd-grid/wd-grid.vue +48 -0
  133. package/components/wd-grid-item/index.scss +187 -0
  134. package/components/wd-grid-item/types.ts +98 -0
  135. package/components/wd-grid-item/wd-grid-item.vue +295 -0
  136. package/components/wd-icon/index.scss +46 -0
  137. package/components/wd-icon/types.ts +44 -0
  138. package/components/wd-icon/wd-icon.vue +66 -0
  139. package/components/wd-image-preview/index.scss +94 -0
  140. package/components/wd-image-preview/index.ts +95 -0
  141. package/components/wd-image-preview/types.ts +165 -0
  142. package/components/wd-image-preview/wd-image-preview.vue +233 -0
  143. package/components/wd-img/index.scss +82 -0
  144. package/components/wd-img/types.ts +96 -0
  145. package/components/wd-img/wd-img.vue +91 -0
  146. package/components/wd-img-cropper/index.scss +259 -0
  147. package/components/wd-img-cropper/types.ts +101 -0
  148. package/components/wd-img-cropper/wd-img-cropper.vue +653 -0
  149. package/components/wd-index-anchor/index.scss +34 -0
  150. package/components/wd-index-anchor/type.ts +9 -0
  151. package/components/wd-index-anchor/wd-index-anchor.vue +55 -0
  152. package/components/wd-index-bar/index.scss +68 -0
  153. package/components/wd-index-bar/type.ts +23 -0
  154. package/components/wd-index-bar/wd-index-bar.vue +157 -0
  155. package/components/wd-input/index.scss +129 -0
  156. package/components/wd-input/types.ts +165 -0
  157. package/components/wd-input/wd-input.vue +237 -0
  158. package/components/wd-input-number/index.scss +233 -0
  159. package/components/wd-input-number/types.ts +131 -0
  160. package/components/wd-input-number/wd-input-number.vue +473 -0
  161. package/components/wd-keyboard/constants.ts +81 -0
  162. package/components/wd-keyboard/index.scss +104 -0
  163. package/components/wd-keyboard/key/index.scss +103 -0
  164. package/components/wd-keyboard/key/index.vue +84 -0
  165. package/components/wd-keyboard/key/types.ts +44 -0
  166. package/components/wd-keyboard/types.ts +138 -0
  167. package/components/wd-keyboard/wd-keyboard.vue +236 -0
  168. package/components/wd-loading/index.scss +205 -0
  169. package/components/wd-loading/types.ts +61 -0
  170. package/components/wd-loading/wd-loading.vue +70 -0
  171. package/components/wd-loadmore/index.scss +62 -0
  172. package/components/wd-loadmore/types.ts +42 -0
  173. package/components/wd-loadmore/wd-loadmore.vue +68 -0
  174. package/components/wd-navbar/index.scss +96 -0
  175. package/components/wd-navbar/types.ts +74 -0
  176. package/components/wd-navbar/wd-navbar.vue +136 -0
  177. package/components/wd-navbar-capsule/index.scss +70 -0
  178. package/components/wd-navbar-capsule/types.ts +11 -0
  179. package/components/wd-navbar-capsule/wd-navbar-capsule.vue +48 -0
  180. package/components/wd-notice-bar/index.scss +94 -0
  181. package/components/wd-notice-bar/types.ts +97 -0
  182. package/components/wd-notice-bar/wd-notice-bar.vue +270 -0
  183. package/components/wd-notify/index.scss +114 -0
  184. package/components/wd-notify/index.ts +63 -0
  185. package/components/wd-notify/types.ts +130 -0
  186. package/components/wd-notify/wd-notify.vue +162 -0
  187. package/components/wd-overlay/index.scss +14 -0
  188. package/components/wd-overlay/types.ts +42 -0
  189. package/components/wd-overlay/wd-overlay.vue +55 -0
  190. package/components/wd-pagination/index.scss +71 -0
  191. package/components/wd-pagination/types.ts +69 -0
  192. package/components/wd-pagination/wd-pagination.vue +118 -0
  193. package/components/wd-password-input/index.scss +134 -0
  194. package/components/wd-password-input/types.ts +42 -0
  195. package/components/wd-password-input/wd-password-input.vue +51 -0
  196. package/components/wd-picker/index.scss +72 -0
  197. package/components/wd-picker/types.ts +141 -0
  198. package/components/wd-picker/wd-picker.vue +220 -0
  199. package/components/wd-picker-view/index.scss +93 -0
  200. package/components/wd-picker-view/types.ts +145 -0
  201. package/components/wd-picker-view/useSelection.ts +385 -0
  202. package/components/wd-picker-view/wd-picker-view.vue +227 -0
  203. package/components/wd-popover/index.scss +117 -0
  204. package/components/wd-popover/types.ts +106 -0
  205. package/components/wd-popover/wd-popover.vue +212 -0
  206. package/components/wd-popup/index.scss +89 -0
  207. package/components/wd-popup/types.ts +110 -0
  208. package/components/wd-popup/wd-popup.vue +174 -0
  209. package/components/wd-progress/index.scss +155 -0
  210. package/components/wd-progress/types.ts +94 -0
  211. package/components/wd-progress/wd-progress.vue +249 -0
  212. package/components/wd-radio/index.scss +189 -0
  213. package/components/wd-radio/types.ts +64 -0
  214. package/components/wd-radio/wd-radio.vue +164 -0
  215. package/components/wd-radio-group/index.scss +5 -0
  216. package/components/wd-radio-group/types.ts +70 -0
  217. package/components/wd-radio-group/wd-radio-group.vue +53 -0
  218. package/components/wd-rate/index.scss +57 -0
  219. package/components/wd-rate/types.ts +86 -0
  220. package/components/wd-rate/wd-rate.vue +168 -0
  221. package/components/wd-resize/index.scss +31 -0
  222. package/components/wd-resize/types.ts +14 -0
  223. package/components/wd-resize/wd-resize.vue +157 -0
  224. package/components/wd-root-portal/wd-root-portal.vue +77 -0
  225. package/components/wd-row/index.scss +6 -0
  226. package/components/wd-row/types.ts +36 -0
  227. package/components/wd-row/wd-row.vue +88 -0
  228. package/components/wd-search/index.scss +171 -0
  229. package/components/wd-search/types.ts +107 -0
  230. package/components/wd-search/wd-search.vue +198 -0
  231. package/components/wd-segmented/index.scss +155 -0
  232. package/components/wd-segmented/types.ts +81 -0
  233. package/components/wd-segmented/wd-segmented.vue +169 -0
  234. package/components/wd-select-picker/index.scss +72 -0
  235. package/components/wd-select-picker/types.ts +72 -0
  236. package/components/wd-select-picker/wd-select-picker.vue +371 -0
  237. package/components/wd-sidebar/index.scss +25 -0
  238. package/components/wd-sidebar/types.ts +34 -0
  239. package/components/wd-sidebar/wd-sidebar.vue +57 -0
  240. package/components/wd-sidebar-item/index.scss +91 -0
  241. package/components/wd-sidebar-item/types.ts +28 -0
  242. package/components/wd-sidebar-item/wd-sidebar-item.vue +118 -0
  243. package/components/wd-signature/index.scss +42 -0
  244. package/components/wd-signature/types.ts +295 -0
  245. package/components/wd-signature/wd-signature.vue +664 -0
  246. package/components/wd-skeleton/index.scss +112 -0
  247. package/components/wd-skeleton/types.ts +124 -0
  248. package/components/wd-skeleton/wd-skeleton.vue +110 -0
  249. package/components/wd-slide-verify/index.scss +112 -0
  250. package/components/wd-slide-verify/types.ts +98 -0
  251. package/components/wd-slide-verify/wd-slide-verify.vue +222 -0
  252. package/components/wd-slider/index.scss +485 -0
  253. package/components/wd-slider/types.ts +166 -0
  254. package/components/wd-slider/wd-slider.vue +529 -0
  255. package/components/wd-sort-button/index.scss +126 -0
  256. package/components/wd-sort-button/types.ts +68 -0
  257. package/components/wd-sort-button/wd-sort-button.vue +67 -0
  258. package/components/wd-step/index.scss +366 -0
  259. package/components/wd-step/types.ts +43 -0
  260. package/components/wd-step/wd-step.vue +181 -0
  261. package/components/wd-steps/index.scss +7 -0
  262. package/components/wd-steps/types.ts +50 -0
  263. package/components/wd-steps/wd-steps.vue +39 -0
  264. package/components/wd-sticky/index.scss +9 -0
  265. package/components/wd-sticky/types.ts +13 -0
  266. package/components/wd-sticky/wd-sticky.vue +192 -0
  267. package/components/wd-sticky-box/index.scss +6 -0
  268. package/components/wd-sticky-box/types.ts +20 -0
  269. package/components/wd-sticky-box/wd-sticky-box.vue +157 -0
  270. package/components/wd-swipe-action/index.scss +22 -0
  271. package/components/wd-swipe-action/types.ts +87 -0
  272. package/components/wd-swipe-action/wd-swipe-action.vue +320 -0
  273. package/components/wd-swiper/index.scss +69 -0
  274. package/components/wd-swiper/types.ts +275 -0
  275. package/components/wd-swiper/wd-swiper.vue +332 -0
  276. package/components/wd-swiper-nav/index.scss +179 -0
  277. package/components/wd-swiper-nav/types.ts +42 -0
  278. package/components/wd-swiper-nav/wd-swiper-nav.vue +42 -0
  279. package/components/wd-switch/index.scss +177 -0
  280. package/components/wd-switch/types.ts +93 -0
  281. package/components/wd-switch/wd-switch.vue +107 -0
  282. package/components/wd-tab/index.scss +16 -0
  283. package/components/wd-tab/types.ts +45 -0
  284. package/components/wd-tab/wd-tab.vue +99 -0
  285. package/components/wd-tabbar/index.scss +71 -0
  286. package/components/wd-tabbar/types.ts +79 -0
  287. package/components/wd-tabbar/wd-tabbar.vue +109 -0
  288. package/components/wd-tabbar-item/index.scss +50 -0
  289. package/components/wd-tabbar-item/types.ts +45 -0
  290. package/components/wd-tabbar-item/wd-tabbar-item.vue +101 -0
  291. package/components/wd-table/index.scss +128 -0
  292. package/components/wd-table/types.ts +160 -0
  293. package/components/wd-table/wd-table.vue +331 -0
  294. package/components/wd-table-column/index.scss +15 -0
  295. package/components/wd-table-column/types.ts +81 -0
  296. package/components/wd-table-column/wd-table-column.vue +198 -0
  297. package/components/wd-tabs/index.scss +332 -0
  298. package/components/wd-tabs/types.ts +155 -0
  299. package/components/wd-tabs/wd-tabs.vue +508 -0
  300. package/components/wd-tag/index.scss +325 -0
  301. package/components/wd-tag/types.ts +90 -0
  302. package/components/wd-tag/wd-tag.vue +158 -0
  303. package/components/wd-text/index.scss +52 -0
  304. package/components/wd-text/types.ts +107 -0
  305. package/components/wd-text/wd-text.vue +141 -0
  306. package/components/wd-textarea/index.scss +112 -0
  307. package/components/wd-textarea/types.ts +151 -0
  308. package/components/wd-textarea/wd-textarea.vue +212 -0
  309. package/components/wd-toast/index.scss +92 -0
  310. package/components/wd-toast/index.ts +97 -0
  311. package/components/wd-toast/types.ts +190 -0
  312. package/components/wd-toast/wd-toast.vue +158 -0
  313. package/components/wd-tooltip/index.scss +77 -0
  314. package/components/wd-tooltip/types.ts +105 -0
  315. package/components/wd-tooltip/wd-tooltip.vue +169 -0
  316. package/components/wd-tour/index.scss +106 -0
  317. package/components/wd-tour/types.ts +268 -0
  318. package/components/wd-tour/wd-tour.vue +518 -0
  319. package/components/wd-transition/index.scss +67 -0
  320. package/components/wd-transition/types.ts +106 -0
  321. package/components/wd-transition/wd-transition.vue +238 -0
  322. package/components/wd-upload/index.scss +204 -0
  323. package/components/wd-upload/types.ts +390 -0
  324. package/components/wd-upload/wd-upload.vue +565 -0
  325. package/components/wd-video-preview/index.scss +54 -0
  326. package/components/wd-video-preview/index.ts +64 -0
  327. package/components/wd-video-preview/types.ts +66 -0
  328. package/components/wd-video-preview/wd-video-preview.vue +141 -0
  329. package/components/wd-watermark/index.scss +21 -0
  330. package/components/wd-watermark/types.ts +130 -0
  331. package/components/wd-watermark/wd-watermark.vue +718 -0
  332. package/components/wot-ui/wot-ui.vue +5 -0
  333. package/composables/index.ts +12 -0
  334. package/composables/useCell.ts +34 -0
  335. package/composables/useChildren.ts +120 -0
  336. package/composables/useConfigProvider.ts +45 -0
  337. package/composables/useCountDown.ts +138 -0
  338. package/composables/useDeviceInfo.ts +136 -0
  339. package/composables/useLockScroll.ts +37 -0
  340. package/composables/useParent.ts +51 -0
  341. package/composables/usePopover.ts +212 -0
  342. package/composables/useQueue.ts +52 -0
  343. package/composables/useRaf.ts +37 -0
  344. package/composables/useTouch.ts +43 -0
  345. package/composables/useTranslate.ts +12 -0
  346. package/composables/useUpload.ts +366 -0
  347. package/global.d.ts +106 -0
  348. package/index.ts +11 -0
  349. package/locale/index.ts +32 -0
  350. package/locale/lang/ar-SA.ts +150 -0
  351. package/locale/lang/de-DE.ts +150 -0
  352. package/locale/lang/en-US.ts +150 -0
  353. package/locale/lang/es-ES.ts +150 -0
  354. package/locale/lang/fr-FR.ts +150 -0
  355. package/locale/lang/ja-JP.ts +150 -0
  356. package/locale/lang/ko-KR.ts +150 -0
  357. package/locale/lang/pt-PT.ts +150 -0
  358. package/locale/lang/ru-RU.ts +150 -0
  359. package/locale/lang/th-TH.ts +150 -0
  360. package/locale/lang/tr-TR.ts +155 -0
  361. package/locale/lang/ug-CN.ts +154 -0
  362. package/locale/lang/vi-VN.ts +89 -0
  363. package/locale/lang/zh-CN.ts +154 -0
  364. package/locale/lang/zh-HK.ts +78 -0
  365. package/locale/lang/zh-TW.ts +78 -0
  366. package/package.json +1 -11
  367. package/styles/iconfont/iconfont.scss +1243 -0
  368. package/styles/mixin/_config.scss +7 -0
  369. package/styles/mixin/_function.scss +44 -0
  370. package/styles/mixin/_mixin.scss +473 -0
  371. package/styles/theme/base/color.scss +210 -0
  372. package/styles/theme/base/font.scss +13 -0
  373. package/styles/theme/base/index.scss +8 -0
  374. package/styles/theme/base/insets.scss +32 -0
  375. package/styles/theme/base/number.scss +36 -0
  376. package/styles/theme/base/opacity.scss +9 -0
  377. package/styles/theme/base/radius.scss +13 -0
  378. package/styles/theme/base/stroke.scss +9 -0
  379. package/styles/theme/base/typography.scss +44 -0
  380. package/styles/theme/dark.scss +101 -0
  381. package/styles/theme/index.scss +16 -0
  382. package/styles/theme/light.scss +101 -0
  383. package/styles/variable.scss +472 -0
  384. package/tags.json +1 -0
  385. package/web-types.json +1 -0
@@ -0,0 +1,249 @@
1
+ <template>
2
+ <view
3
+ :class="`wd-progress ${percentPosition.type === 'inner' ? 'wd-progress--inner' : ''} ${status ? 'wd-progress--' + status : ''} ${
4
+ percentage === 0 ? 'is-zero' : ''
5
+ } ${customClass}`"
6
+ :style="customStyle"
7
+ >
8
+ <view class="wd-progress__outer">
9
+ <view class="wd-progress__inner" :style="rootStyle">
10
+ <!-- inner 渲染到 progress__inner 内部 -->
11
+ <template v-if="percentPosition.type === 'inner'">
12
+ <view v-if="!hideText" :class="['wd-progress__label', percentPosition.align ? `is-align-${percentPosition.align}` : '']">
13
+ {{ percentage }}%
14
+ </view>
15
+ <wd-icon
16
+ v-else-if="status"
17
+ :custom-class="`wd-progress__label wd-progress__icon ${hideText ? 'is-hide-text' : ''} ${
18
+ percentPosition.align ? `is-align-${percentPosition.align}` : ''
19
+ }`"
20
+ :name="iconName"
21
+ :color="isString(color) ? color : ''"
22
+ ></wd-icon>
23
+ </template>
24
+ </view>
25
+ </view>
26
+ <!-- outer 渲染到外侧 -->
27
+ <template v-if="percentPosition.type === 'outer'">
28
+ <view v-if="!hideText" class="wd-progress__label">{{ percentage }}%</view>
29
+ <wd-icon
30
+ v-else-if="status"
31
+ :custom-class="`wd-progress__label wd-progress__icon ${hideText ? 'is-hide-text' : ''}`"
32
+ :name="iconName"
33
+ :color="isString(color) ? color : ''"
34
+ ></wd-icon>
35
+ </template>
36
+ </view>
37
+ </template>
38
+
39
+ <script lang="ts">
40
+ export default {
41
+ name: 'wd-progress',
42
+ options: {
43
+ // #ifndef MP-TOUTIAO
44
+ virtualHost: true,
45
+ // #endif
46
+ addGlobalClass: true,
47
+ styleIsolation: 'shared'
48
+ }
49
+ }
50
+ </script>
51
+
52
+ <script lang="ts" setup>
53
+ import wdIcon from '../wd-icon/wd-icon.vue'
54
+ import { computed, ref, watch } from 'vue'
55
+ import { isArray, isDef, isObj, isString, objToStyle, pause } from '../../common/util'
56
+ import { progressProps, type ProgressColor } from './types'
57
+
58
+ const props = defineProps(progressProps)
59
+ // 进度条渲染颜色
60
+ const displayColor = ref<string>('')
61
+
62
+ // 进度条渲染进度比例
63
+ const displayPercentage = ref<number>(0)
64
+
65
+ // 百分比变更差值
66
+ const percentageDiff = ref<number>(0)
67
+
68
+ // 进度条延迟定时器
69
+ let animationTimer: ReturnType<typeof setTimeout> | null = null
70
+
71
+ /**
72
+ * 根节点样式,控制进度条底色、宽度及过渡动画
73
+ */
74
+ const rootStyle = computed(() => {
75
+ return objToStyle({
76
+ background: displayColor.value,
77
+ width: `${displayPercentage.value}%`,
78
+ 'transition-duration': `${percentageDiff.value * props.duration * 0.001}s`
79
+ })
80
+ })
81
+
82
+ /**
83
+ * 内置或外置图标的名称,根据状态不同返回对应图标
84
+ */
85
+ const iconName = computed(() => {
86
+ let icon: string = ''
87
+ switch (props.status) {
88
+ case 'danger':
89
+ icon = 'close-circle-fill'
90
+ break
91
+ case 'success':
92
+ icon = 'check-circle-fill'
93
+ break
94
+ case 'warning':
95
+ icon = 'exclamation-circle-fill'
96
+ break
97
+ default:
98
+ break
99
+ }
100
+ return icon
101
+ })
102
+
103
+ watch(
104
+ () => [props.percentage, props.color, props.duration],
105
+ () => {
106
+ validatePercentage(props.percentage)
107
+ updateProgress()
108
+ },
109
+ { immediate: true }
110
+ )
111
+
112
+ /**
113
+ * 校验 percentage 是否合法
114
+ * @param {number} value 百分比值
115
+ */
116
+ function validatePercentage(value: number) {
117
+ if (Number.isNaN(value) || value < 0 || value > 100) {
118
+ console.error('The value of percentage must be between 0 and 100')
119
+ }
120
+ }
121
+
122
+ /**
123
+ * 进度条前进算法
124
+ * @param {ProgressColor[]} partList 颜色及对应进度断点数组
125
+ * @param {number} percentage 目标进度值
126
+ * @returns {boolean}
127
+ */
128
+ function updateProgressForward(partList: ProgressColor[], percentage: number) {
129
+ return partList.some((part, index) => {
130
+ if (displayPercentage.value < part.percentage && part.percentage <= percentage) {
131
+ renderProgressStep(part.percentage, part.color)
132
+ return true
133
+ } else if (index === partList.length - 1) {
134
+ renderProgressStep(percentage, part.color)
135
+ }
136
+ })
137
+ }
138
+
139
+ /**
140
+ * 进度条后退算法
141
+ * @param {ProgressColor[]} partList 颜色及对应进度断点数组
142
+ * @param {number} percentage 目标进度值
143
+ * @returns {boolean}
144
+ */
145
+ function updateProgressBackward(partList: ProgressColor[], percentage: number) {
146
+ return partList.some((part) => {
147
+ if (percentage <= part.percentage) {
148
+ renderProgressStep(percentage, part.color)
149
+ return true
150
+ }
151
+ })
152
+ }
153
+
154
+ /**
155
+ * 更新进度条的显示逻辑主入口
156
+ * @returns {Promise<void>}
157
+ */
158
+ async function updateProgress() {
159
+ const { percentage, color } = props
160
+ if (!isDef(color) || (isArray(color) && color.length === 0)) {
161
+ percentageDiff.value = Math.abs(percentage - displayPercentage.value)
162
+ await pause()
163
+ displayPercentage.value = percentage
164
+ return
165
+ }
166
+ if (displayPercentage.value === percentage) return
167
+
168
+ const colorArray = isArray(color) ? color : [color]
169
+ validateColorArray(colorArray)
170
+ const partList = createPartList(colorArray)
171
+ displayPercentage.value > percentage ? updateProgressBackward(partList, percentage) : updateProgressForward(partList, percentage)
172
+ }
173
+
174
+ /**
175
+ * 判断是否是复合类型的颜色及进度数组
176
+ * @param {string[] | ProgressColor[]} array 要判断的数组
177
+ * @returns {array is ProgressColor[]} 判定依据
178
+ */
179
+ function isProgressColorArray(array: string[] | ProgressColor[]): array is ProgressColor[] {
180
+ return array.every(
181
+ (color) => isObj(color) && Object.prototype.hasOwnProperty.call(color, 'color') && Object.prototype.hasOwnProperty.call(color, 'percentage')
182
+ )
183
+ }
184
+
185
+ /**
186
+ * 判断是否是纯字符串形式的颜色数组
187
+ * @param {string[] | ProgressColor[]} array 要判断的数组
188
+ * @returns {array is string[]} 判定依据
189
+ */
190
+ function isStringArray(array: string[] | ProgressColor[]): array is string[] {
191
+ return array.every((item) => typeof item === 'string')
192
+ }
193
+
194
+ /**
195
+ * 校验颜色数组结构安全性
196
+ * @param {string[] | ProgressColor[]} colorArray 颜色数组
197
+ * @throws {Error} 未遵循 ProgressColor | String 的数组格式将引发错误
198
+ */
199
+ function validateColorArray(colorArray: string[] | ProgressColor[]) {
200
+ const isStrArray = isStringArray(colorArray)
201
+ const isObjArray = isProgressColorArray(colorArray)
202
+ if (!isStrArray && !isObjArray) {
203
+ throw Error('Color must be String or Object with color and percentage')
204
+ }
205
+ if (isObjArray && colorArray.some(({ percentage }) => Number.isNaN(percentage))) {
206
+ throw Error('All the percentage must can be formatted to Number')
207
+ }
208
+ }
209
+
210
+ /**
211
+ * 创建基于刻度的颜色渲染流
212
+ * @param {string[] | ProgressColor[]} colorArray 颜色数组
213
+ * @returns {ProgressColor[]} 对齐进度标识后的颜色数组
214
+ */
215
+ function createPartList(colorArray: string[] | ProgressColor[]) {
216
+ const partNum = 100 / colorArray.length
217
+ return isProgressColorArray(colorArray)
218
+ ? colorArray.sort((a, b) => a.percentage - b.percentage)
219
+ : colorArray.map((item, index) => ({
220
+ color: item,
221
+ percentage: (index + 1) * partNum
222
+ }))
223
+ }
224
+
225
+ /**
226
+ * 内部驱动方法更新渲染视图及进度
227
+ * @param {number} targetPercent 阶段目标进度
228
+ * @param {string} color 颜色描述
229
+ * @returns {void}
230
+ */
231
+ function renderProgressStep(targetPercent: number, color: string) {
232
+ if (animationTimer) return
233
+ const { duration } = props
234
+ percentageDiff.value = Math.abs(targetPercent - displayPercentage.value)
235
+ setTimeout(() => {
236
+ displayPercentage.value = targetPercent
237
+ displayColor.value = color
238
+ animationTimer = setTimeout(() => {
239
+ animationTimer && clearTimeout(animationTimer)
240
+ animationTimer = null
241
+ updateProgress()
242
+ }, percentageDiff.value * duration)
243
+ }, 50)
244
+ }
245
+ </script>
246
+
247
+ <style lang="scss">
248
+ @use './index.scss';
249
+ </style>
@@ -0,0 +1,189 @@
1
+ @use '../../styles/mixin/mixin.scss'as *;
2
+ @use '../../styles/variable.scss'as *;
3
+
4
+ // 文案与图标间距
5
+ $radio-label-margin: var(--wot-radio-label-margin, $spacing-tight) !default;
6
+ // 选中颜色
7
+ $radio-checked-color: var(--wot-radio-checked-color, $primary-6) !default;
8
+ // 图标尺寸
9
+ $radio-icon-size: var(--wot-radio-icon-size, $n-22) !default;
10
+ // 未选中图标颜色
11
+ $radio-unchecked-color: var(--wot-radio-unchecked-color, $coolgrey-3) !default;
12
+ // 文案字号
13
+ $radio-label-font-size: var(--wot-radio-label-font-size, $typography-body-size-main) !default;
14
+ // 文案颜色
15
+ $radio-label-color: var(--wot-radio-label-color, $text-main) !default;
16
+ // 文案行高
17
+ $radio-label-line-height: var(--wot-radio-label-line-height, $typography-body-line--height-size-main) !default;
18
+ // 禁用态透明度
19
+ $radio-disabled: var(--wot-radio-disabled, $opacity-disabled) !default;
20
+ // 水平模式间距
21
+ $radio-horizontal-margin: var(--wot-radio-horizontal-margin, $spacing-zero $spacing-extra-loose $spacing-zero $spacing-zero) !default;
22
+ // 按钮模式项间距
23
+ $radio-button-margin: var(--wot-radio-button-margin, $spacing-zero $spacing-extra-loose $spacing-extra-loose $spacing-zero) !default;
24
+ // 按钮模式边框宽度
25
+ $radio-button-border-width: var(--wot-radio-button-border-width, $n-1) !default;
26
+ // 按钮模式标记圆角
27
+ $radio-button-shape-border-radius: var(--wot-radio-button-shape-border-radius, $radius-radius-full) !default;
28
+ // 按钮模式标记尺寸
29
+ $radio-button-shape-size: var(--wot-radio-button-shape-size, $n-26) !default;
30
+ // 按钮模式字号
31
+ $radio-button-font-size: var(--wot-radio-button-font-size, $typography-body-size-main) !default;
32
+ // 按钮模式行高
33
+ $radio-button-line-height: var(--wot-radio-button-line-height, $typography-body-line--height-size-main) !default;
34
+ // 按钮模式背景色
35
+ $radio-button-bg: var(--wot-radio-button-bg, $filled-bottom) !default;
36
+ // 按钮模式选中背景色
37
+ $radio-button-checked-bg: var(--wot-radio-button-checked-bg, $filled-oppo) !default;
38
+ // 按钮模式图标尺寸
39
+ $radio-button-icon-size: var(--wot-radio-button-icon-size, $n-10) !default;
40
+ // 按钮模式最小宽度
41
+ $radio-button-min-width: var(--wot-radio-button-min-width, 74px) !default;
42
+ // 按钮模式最大宽度
43
+ $radio-button-max-width: var(--wot-radio-button-max-width, 148px) !default;
44
+ // 按钮模式圆角
45
+ $radio-button-border-radius: var(--wot-radio-button-border-radius, $radius-main) !default;
46
+ // 按钮模式内边距
47
+ $radio-button-padding: var(--wot-radio-button-padding, $padding-extra-tight $padding-extra-loose) !default;
48
+ // 按钮模式图标颜色
49
+ $radio-button-icon-color: var(--wot-radio-button-icon-color, $icon-white) !default;
50
+ // 按钮模式标记顶部偏移
51
+ $radio-button-shape-top: var(--wot-radio-button-shape-top, calc(-1 * #{$n-11})) !default;
52
+ // 按钮模式标记左侧偏移
53
+ $radio-button-shape-left: var(--wot-radio-button-shape-left, calc(-1 * #{$n-9})) !default;
54
+ // 按钮模式标记右侧偏移
55
+ $radio-button-shape-right: var(--wot-radio-button-shape-right, calc(-1 * #{$n-9})) !default;
56
+ // 按钮模式图标顶部偏移
57
+ $radio-button-icon-top: var(--wot-radio-button-icon-top, calc(13 * #{$n-1})) !default;
58
+ // 按钮模式图标右侧偏移
59
+ $radio-button-icon-right: var(--wot-radio-button-icon-right, $n-4) !default;
60
+ // 按钮模式图标左侧偏移
61
+ $radio-button-icon-left: var(--wot-radio-button-icon-left, $n-4) !default;
62
+
63
+ @include b(radio) {
64
+ position: relative;
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: space-between;
68
+ overflow: hidden;
69
+
70
+ @include m(horizontal) {
71
+ display: inline-flex;
72
+ justify-content: flex-start;
73
+ vertical-align: middle;
74
+
75
+ &:not(:last-child) {
76
+ margin: $radio-horizontal-margin;
77
+ }
78
+ }
79
+
80
+ @include m(right) {
81
+ .wd-radio__label {
82
+ margin-right: $radio-label-margin;
83
+ }
84
+ }
85
+
86
+ @include m(left) {
87
+ flex-direction: row-reverse;
88
+ justify-content: flex-end;
89
+
90
+ .wd-radio__label {
91
+ margin-left: $radio-label-margin;
92
+ }
93
+ }
94
+
95
+ @include edeep(icon) {
96
+ font-size: $radio-icon-size;
97
+ height: $radio-icon-size;
98
+ line-height: $radio-icon-size;
99
+ color: $radio-unchecked-color;
100
+ transition: all 0.2s;
101
+ }
102
+
103
+ @include e(label) {
104
+ font-size: $radio-label-font-size;
105
+ color: $radio-label-color;
106
+ line-height: $radio-label-line-height;
107
+ text-align: center;
108
+ word-break: break-all;
109
+ }
110
+
111
+ @include e(shape) {
112
+ position: relative;
113
+ display: inline-flex;
114
+ align-items: center;
115
+ justify-content: center;
116
+ }
117
+
118
+ @include when(checked) {
119
+ :deep(.wd-radio__icon) {
120
+ color: $radio-checked-color;
121
+ }
122
+ }
123
+
124
+ @include when(button) {
125
+ display: inline-block;
126
+ min-width: $radio-button-min-width;
127
+ max-width: $radio-button-max-width;
128
+ margin: $radio-button-margin;
129
+ border-radius: $radio-button-border-radius;
130
+ background: $radio-button-bg;
131
+ font-size: $radio-button-font-size;
132
+ box-sizing: border-box;
133
+ border: $radio-button-border-width solid $radio-button-bg;
134
+
135
+ .wd-radio__label {
136
+ position: relative;
137
+ padding: $radio-button-padding;
138
+ margin: auto;
139
+ @include lineEllipsis;
140
+ }
141
+
142
+ .wd-radio__shape {
143
+ position: absolute;
144
+ top: $radio-button-shape-top;
145
+ left: $radio-button-shape-left;
146
+ width: $radio-button-shape-size;
147
+ height: $radio-button-shape-size;
148
+ border-radius: $radio-button-shape-border-radius;
149
+ background: transparent;
150
+ }
151
+
152
+ :deep(.wd-radio__icon) {
153
+ position: absolute;
154
+ top: $radio-button-icon-top;
155
+ right: $radio-button-icon-right;
156
+ font-size: $radio-button-icon-size;
157
+ line-height: $radio-button-icon-size;
158
+ height: $radio-button-icon-size;
159
+ color: $radio-button-icon-color;
160
+ }
161
+
162
+ &.wd-radio--right {
163
+ .wd-radio__shape {
164
+ left: auto;
165
+ right: $radio-button-shape-right;
166
+ }
167
+
168
+ :deep(.wd-radio__icon) {
169
+ right: auto;
170
+ left: $radio-button-icon-left;
171
+ }
172
+ }
173
+
174
+ @include when(checked) {
175
+ color: $radio-checked-color;
176
+ border-color: currentColor;
177
+ background: $radio-button-checked-bg;
178
+
179
+ .wd-radio__shape {
180
+ color: $radio-checked-color;
181
+ background: currentColor;
182
+ }
183
+ }
184
+ }
185
+
186
+ @include when(disabled) {
187
+ opacity: $radio-disabled;
188
+ }
189
+ }
@@ -0,0 +1,64 @@
1
+ import type { PropType } from 'vue'
2
+ import { baseProps, makeRequiredProp } from '../../common/props'
3
+
4
+ export type RadioType = 'dot' | 'circle' | 'square' | 'button'
5
+
6
+ export type RadioPlacement = 'left' | 'right'
7
+
8
+ export type RadioDirection = 'horizontal' | 'vertical'
9
+
10
+ export const radioProps = {
11
+ ...baseProps,
12
+ /**
13
+ * 选中时的值
14
+ */
15
+ value: makeRequiredProp([String, Number, Boolean]),
16
+ /**
17
+ * 单选框类型
18
+ * 可选值: dot | circle | square | button
19
+ * 默认值: 继承自 radio-group
20
+ */
21
+ type: String as PropType<RadioType>,
22
+ /**
23
+ * 选中的颜色
24
+ * 默认值: 继承自 radio-group
25
+ */
26
+ checkedColor: String,
27
+ /**
28
+ * 未选中状态的颜色
29
+ * 默认值: 继承自 radio-group
30
+ */
31
+ uncheckedColor: String,
32
+ /**
33
+ * 是否禁用
34
+ * 默认值: 继承自 radio-group
35
+ */
36
+ disabled: {
37
+ type: Boolean,
38
+ default: void 0
39
+ },
40
+ /**
41
+ * 是否只读
42
+ * 默认值: 继承自 radio-group
43
+ */
44
+ readonly: {
45
+ type: Boolean,
46
+ default: void 0
47
+ },
48
+ /**
49
+ * 布局方向
50
+ * 可选值: 'horizontal' | 'vertical'
51
+ * 默认值: 继承自 radio-group
52
+ */
53
+ direction: String as PropType<RadioDirection>,
54
+ /**
55
+ * 图标位置
56
+ * 可选值: 'left' | 'right'
57
+ * 默认值: 继承自 radio-group
58
+ */
59
+ placement: String as PropType<RadioPlacement>,
60
+ /**
61
+ * 自定义label文本类名
62
+ */
63
+ customLabelClass: String
64
+ }
@@ -0,0 +1,164 @@
1
+ <template>
2
+ <view
3
+ :class="`wd-radio wd-radio--${placementValue} ${isButton ? 'is-button' : 'wd-radio--' + directionValue} ${isChecked ? 'is-checked' : ''} ${
4
+ disabledValue ? 'is-disabled' : ''
5
+ } ${customClass}`"
6
+ :style="customStyle"
7
+ @click="handleClick"
8
+ >
9
+ <view :class="`wd-radio__label ${customLabelClass || ''}`" v-if="$slots.default">
10
+ <slot></slot>
11
+ </view>
12
+
13
+ <template v-if="isButton">
14
+ <slot name="icon" :is-checked="isChecked">
15
+ <view v-if="isChecked" class="wd-radio__shape">
16
+ <wd-icon custom-class="wd-radio__icon" :custom-style="iconStyle" :name="iconValue"></wd-icon>
17
+ </view>
18
+ </slot>
19
+ </template>
20
+ <view v-else class="wd-radio__shape">
21
+ <slot name="icon" :is-checked="isChecked">
22
+ <wd-icon custom-class="wd-radio__icon" :custom-style="iconStyle" :name="iconValue"></wd-icon>
23
+ </slot>
24
+ </view>
25
+ </view>
26
+ </template>
27
+ <script lang="ts">
28
+ export default {
29
+ name: 'wd-radio',
30
+ options: {
31
+ // #ifndef MP-TOUTIAO
32
+ virtualHost: true,
33
+ // #endif
34
+ addGlobalClass: true,
35
+ styleIsolation: 'shared'
36
+ }
37
+ }
38
+ </script>
39
+ <script lang="ts" setup>
40
+ import wdIcon from '../wd-icon/wd-icon.vue'
41
+ import { computed, watch } from 'vue'
42
+ import { useParent } from '../../composables/useParent'
43
+ import { RADIO_GROUP_KEY } from '../wd-radio-group/types'
44
+ import { type RadioDirection, type RadioPlacement, radioProps, type RadioType } from './types'
45
+ import { getPropByPath, isDef } from '../../common/util'
46
+
47
+ const props = defineProps(radioProps)
48
+
49
+ const { parent: radioGroup } = useParent(RADIO_GROUP_KEY)
50
+
51
+ const isChecked = computed(() => {
52
+ if (radioGroup.value) {
53
+ return props.value === radioGroup.value.props.modelValue
54
+ } else {
55
+ return false
56
+ }
57
+ })
58
+
59
+ const typeValue = computed(() => {
60
+ return props.type || (getPropByPath(radioGroup.value, 'props.type') as RadioType)
61
+ })
62
+
63
+ const iconValue = computed(() => {
64
+ let icon = ''
65
+ switch (typeValue.value) {
66
+ case 'circle':
67
+ icon = isChecked.value ? 'check-circle-fill' : 'uncheck-circle'
68
+ break
69
+ case 'square':
70
+ icon = isChecked.value ? 'check-square-fill' : 'uncheck-square'
71
+ break
72
+ case 'dot':
73
+ icon = isChecked.value ? 'check-circle-radio-fill' : 'uncheck-circle'
74
+ break
75
+ case 'button':
76
+ icon = isChecked.value ? 'check' : ''
77
+ break
78
+ default:
79
+ break
80
+ }
81
+ return icon
82
+ })
83
+
84
+ const checkedColorValue = computed(() => {
85
+ return props.checkedColor || getPropByPath(radioGroup.value, 'props.checkedColor')
86
+ })
87
+
88
+ const uncheckedColorValue = computed(() => {
89
+ return props.uncheckedColor || getPropByPath(radioGroup.value, 'props.uncheckedColor')
90
+ })
91
+
92
+ const readonlyValue = computed(() => {
93
+ if (isDef(props.readonly)) {
94
+ return props.readonly
95
+ } else {
96
+ return getPropByPath(radioGroup.value, 'props.readonly')
97
+ }
98
+ })
99
+
100
+ const iconStyle = computed(() => {
101
+ if (isButton.value) return ''
102
+ if (isChecked.value && checkedColorValue.value) {
103
+ return `color: ${checkedColorValue.value}`
104
+ }
105
+ if (!isChecked.value && uncheckedColorValue.value) {
106
+ return `color: ${uncheckedColorValue.value}`
107
+ }
108
+ return ''
109
+ })
110
+
111
+ const isButton = computed(() => {
112
+ return typeValue.value === 'button'
113
+ })
114
+
115
+ const disabledValue = computed(() => {
116
+ if (isDef(props.disabled)) {
117
+ return props.disabled
118
+ } else {
119
+ return getPropByPath(radioGroup.value, 'props.disabled')
120
+ }
121
+ })
122
+
123
+ const directionValue = computed(() => {
124
+ if (isDef(props.direction)) {
125
+ return props.direction
126
+ } else {
127
+ return getPropByPath(radioGroup.value, 'props.direction') as RadioDirection
128
+ }
129
+ })
130
+
131
+ const placementValue = computed<RadioPlacement>(() => {
132
+ if (isDef(props.placement)) {
133
+ return props.placement
134
+ } else {
135
+ return getPropByPath(radioGroup.value, 'props.placement')
136
+ }
137
+ })
138
+
139
+ watch(
140
+ () => props.type,
141
+ (newValue) => {
142
+ const type = ['check', 'dot', 'button', 'square']
143
+ if (!newValue || type.indexOf(newValue) === -1) console.error(`type must be one of ${type.toString()}`)
144
+ }
145
+ )
146
+
147
+ /**
148
+ * 点击子元素,通知父元素触发change事件
149
+ */
150
+ function handleClick() {
151
+ const { value } = props
152
+ if (!disabledValue.value && !readonlyValue.value && radioGroup.value && isDef(value)) {
153
+ const allowUncheck = radioGroup.value.props.allowUncheck
154
+ if (allowUncheck && isChecked.value) {
155
+ radioGroup.value.updateValue(null)
156
+ } else {
157
+ radioGroup.value.updateValue(value)
158
+ }
159
+ }
160
+ }
161
+ </script>
162
+ <style lang="scss">
163
+ @use './index.scss';
164
+ </style>
@@ -0,0 +1,5 @@
1
+ @use '../../styles/mixin/mixin.scss'as *;
2
+ @use '../../styles/variable.scss'as *;
3
+
4
+ @include b(radio-group) {
5
+ }