@open-dy/vibecoding-sdk-taro 0.0.1-beta.5 → 0.0.1-beta.6

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 (541) hide show
  1. package/dist/adapters/interest-card/eslint/eslint-plugin-custom-navigation.mjs +2 -290
  2. package/dist/adapters/interest-card/eslint/taro.mjs +8 -42
  3. package/dist/components/miniapp-open-card.d.ts +46 -1
  4. package/dist/components/miniapp-open-card.js +14 -1
  5. package/dist/components/miniapp-open-card.js.map +1 -1
  6. package/dist/eslint/eslint-plugin-custom-navigation.mjs +290 -0
  7. package/dist/eslint/taro.mjs +11 -0
  8. package/dist/reference/llms.txt +76 -34
  9. package/dist/reference/sdk-api/build/taro/BuildContext.md +7 -2
  10. package/dist/reference/sdk-api/build/taro/CreateMicroappTaroConfigOptions.md +1 -2
  11. package/dist/reference/sdk-api/build/taro/createMicroappTaroConfig.md +1 -2
  12. package/dist/reference/sdk-api/components/miniapp-open-card/MiniappOpenCard.md +109 -0
  13. package/dist/reference/sdk-api/components/miniapp-open-card/MiniappOpenCardEnvVersion.md +38 -0
  14. package/dist/reference/sdk-api/components/miniapp-open-card/MiniappOpenCardErrorDetail.md +52 -0
  15. package/dist/reference/sdk-api/components/miniapp-open-card/MiniappOpenCardProps.md +76 -0
  16. package/dist/reference/sdk-api/components/miniapp-open-card/index.md +12 -0
  17. package/dist/reference/sdk-api/libraries/lucide-taro.md +151 -0
  18. package/dist/reference/sdk-api/runtime/CreateMicroappClientOptions.md +7 -2
  19. package/dist/reference/sdk-api/runtime/createMicroappClient.md +8 -3
  20. package/dist/reference/sdk-api/ui/accordion/Accordion.md +114 -0
  21. package/dist/reference/sdk-api/ui/accordion/AccordionContent.md +100 -0
  22. package/dist/reference/sdk-api/ui/accordion/AccordionItem.md +107 -0
  23. package/dist/reference/sdk-api/ui/accordion/AccordionTrigger.md +100 -0
  24. package/dist/reference/sdk-api/ui/accordion/index.md +12 -0
  25. package/dist/reference/sdk-api/ui/alert/Alert.md +106 -0
  26. package/dist/reference/sdk-api/ui/alert/AlertAction.md +100 -0
  27. package/dist/reference/sdk-api/ui/alert/AlertDescription.md +100 -0
  28. package/dist/reference/sdk-api/ui/alert/AlertTitle.md +100 -0
  29. package/dist/reference/sdk-api/ui/alert/index.md +12 -0
  30. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialog.md +58 -0
  31. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogAction.md +107 -0
  32. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogCancel.md +107 -0
  33. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogContent.md +106 -0
  34. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogDescription.md +100 -0
  35. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogFooter.md +100 -0
  36. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogHeader.md +100 -0
  37. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogOverlay.md +100 -0
  38. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogPortal.md +55 -0
  39. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogTitle.md +100 -0
  40. package/dist/reference/sdk-api/ui/alert-dialog/AlertDialogTrigger.md +118 -0
  41. package/dist/reference/sdk-api/ui/alert-dialog/index.md +19 -0
  42. package/dist/reference/sdk-api/ui/aspect-ratio/AspectRatio.md +106 -0
  43. package/dist/reference/sdk-api/ui/aspect-ratio/index.md +9 -0
  44. package/dist/reference/sdk-api/ui/avatar/Avatar.md +106 -0
  45. package/dist/reference/sdk-api/ui/avatar/AvatarBadge.md +100 -0
  46. package/dist/reference/sdk-api/ui/avatar/AvatarFallback.md +100 -0
  47. package/dist/reference/sdk-api/ui/avatar/AvatarGroup.md +100 -0
  48. package/dist/reference/sdk-api/ui/avatar/AvatarGroupCount.md +100 -0
  49. package/dist/reference/sdk-api/ui/avatar/AvatarImage.md +108 -0
  50. package/dist/reference/sdk-api/ui/avatar/index.md +14 -0
  51. package/dist/reference/sdk-api/ui/badge/Badge.md +114 -0
  52. package/dist/reference/sdk-api/ui/badge/badgeVariants.md +70 -0
  53. package/dist/reference/sdk-api/ui/badge/index.md +10 -0
  54. package/dist/reference/sdk-api/ui/button/Button.md +210 -0
  55. package/dist/reference/sdk-api/ui/button/ButtonProps.md +188 -0
  56. package/dist/reference/sdk-api/ui/button/buttonVariants.md +84 -0
  57. package/dist/reference/sdk-api/ui/button/index.md +11 -0
  58. package/dist/reference/sdk-api/ui/button-group/ButtonGroup.md +106 -0
  59. package/dist/reference/sdk-api/ui/button-group/ButtonGroupSeparator.md +106 -0
  60. package/dist/reference/sdk-api/ui/button-group/ButtonGroupText.md +106 -0
  61. package/dist/reference/sdk-api/ui/button-group/buttonGroupVariants.md +70 -0
  62. package/dist/reference/sdk-api/ui/button-group/index.md +12 -0
  63. package/dist/reference/sdk-api/ui/calendar/Calendar.md +144 -0
  64. package/dist/reference/sdk-api/ui/calendar/CalendarProps.md +118 -0
  65. package/dist/reference/sdk-api/ui/calendar/index.md +10 -0
  66. package/dist/reference/sdk-api/ui/card/Card.md +106 -0
  67. package/dist/reference/sdk-api/ui/card/CardAction.md +100 -0
  68. package/dist/reference/sdk-api/ui/card/CardContent.md +100 -0
  69. package/dist/reference/sdk-api/ui/card/CardDescription.md +100 -0
  70. package/dist/reference/sdk-api/ui/card/CardFooter.md +100 -0
  71. package/dist/reference/sdk-api/ui/card/CardHeader.md +100 -0
  72. package/dist/reference/sdk-api/ui/card/CardTitle.md +100 -0
  73. package/dist/reference/sdk-api/ui/card/index.md +15 -0
  74. package/dist/reference/sdk-api/ui/carousel/Carousel.md +108 -0
  75. package/dist/reference/sdk-api/ui/carousel/CarouselContent.md +100 -0
  76. package/dist/reference/sdk-api/ui/carousel/CarouselItem.md +100 -0
  77. package/dist/reference/sdk-api/ui/carousel/CarouselNext.md +219 -0
  78. package/dist/reference/sdk-api/ui/carousel/CarouselPrevious.md +219 -0
  79. package/dist/reference/sdk-api/ui/carousel/index.md +14 -0
  80. package/dist/reference/sdk-api/ui/carousel/useCarousel.md +46 -0
  81. package/dist/reference/sdk-api/ui/checkbox/Checkbox.md +109 -0
  82. package/dist/reference/sdk-api/ui/checkbox/index.md +9 -0
  83. package/dist/reference/sdk-api/ui/collapsible/Collapsible.md +108 -0
  84. package/dist/reference/sdk-api/ui/collapsible/CollapsibleContent.md +100 -0
  85. package/dist/reference/sdk-api/ui/collapsible/CollapsibleTrigger.md +119 -0
  86. package/dist/reference/sdk-api/ui/collapsible/index.md +11 -0
  87. package/dist/reference/sdk-api/ui/combobox/Combobox.md +124 -0
  88. package/dist/reference/sdk-api/ui/combobox/ComboboxChip.md +107 -0
  89. package/dist/reference/sdk-api/ui/combobox/ComboboxChips.md +100 -0
  90. package/dist/reference/sdk-api/ui/combobox/ComboboxChipsInput.md +107 -0
  91. package/dist/reference/sdk-api/ui/combobox/ComboboxCollection.md +100 -0
  92. package/dist/reference/sdk-api/ui/combobox/ComboboxContent.md +106 -0
  93. package/dist/reference/sdk-api/ui/combobox/ComboboxEmpty.md +100 -0
  94. package/dist/reference/sdk-api/ui/combobox/ComboboxGroup.md +100 -0
  95. package/dist/reference/sdk-api/ui/combobox/ComboboxInput.md +113 -0
  96. package/dist/reference/sdk-api/ui/combobox/ComboboxItem.md +106 -0
  97. package/dist/reference/sdk-api/ui/combobox/ComboboxLabel.md +100 -0
  98. package/dist/reference/sdk-api/ui/combobox/ComboboxList.md +105 -0
  99. package/dist/reference/sdk-api/ui/combobox/ComboboxSeparator.md +100 -0
  100. package/dist/reference/sdk-api/ui/combobox/ComboboxTrigger.md +100 -0
  101. package/dist/reference/sdk-api/ui/combobox/ComboboxValue.md +105 -0
  102. package/dist/reference/sdk-api/ui/combobox/index.md +24 -0
  103. package/dist/reference/sdk-api/ui/combobox/useComboboxAnchor.md +43 -0
  104. package/dist/reference/sdk-api/ui/dialog/Dialog.md +58 -0
  105. package/dist/reference/sdk-api/ui/dialog/DialogClose.md +100 -0
  106. package/dist/reference/sdk-api/ui/dialog/DialogContent.md +107 -0
  107. package/dist/reference/sdk-api/ui/dialog/DialogDescription.md +100 -0
  108. package/dist/reference/sdk-api/ui/dialog/DialogFooter.md +100 -0
  109. package/dist/reference/sdk-api/ui/dialog/DialogHeader.md +100 -0
  110. package/dist/reference/sdk-api/ui/dialog/DialogOverlay.md +100 -0
  111. package/dist/reference/sdk-api/ui/dialog/DialogPortal.md +55 -0
  112. package/dist/reference/sdk-api/ui/dialog/DialogTitle.md +100 -0
  113. package/dist/reference/sdk-api/ui/dialog/DialogTrigger.md +106 -0
  114. package/dist/reference/sdk-api/ui/dialog/index.md +18 -0
  115. package/dist/reference/sdk-api/ui/drawer/Drawer.md +59 -0
  116. package/dist/reference/sdk-api/ui/drawer/DrawerClose.md +100 -0
  117. package/dist/reference/sdk-api/ui/drawer/DrawerContent.md +100 -0
  118. package/dist/reference/sdk-api/ui/drawer/DrawerDescription.md +100 -0
  119. package/dist/reference/sdk-api/ui/drawer/DrawerFooter.md +100 -0
  120. package/dist/reference/sdk-api/ui/drawer/DrawerHeader.md +100 -0
  121. package/dist/reference/sdk-api/ui/drawer/DrawerOverlay.md +100 -0
  122. package/dist/reference/sdk-api/ui/drawer/DrawerPortal.md +55 -0
  123. package/dist/reference/sdk-api/ui/drawer/DrawerTitle.md +100 -0
  124. package/dist/reference/sdk-api/ui/drawer/DrawerTrigger.md +100 -0
  125. package/dist/reference/sdk-api/ui/drawer/index.md +18 -0
  126. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenu.md +58 -0
  127. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuCheckboxItem.md +107 -0
  128. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuContent.md +106 -0
  129. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuGroup.md +100 -0
  130. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuItem.md +107 -0
  131. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuLabel.md +106 -0
  132. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuPortal.md +55 -0
  133. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuRadioGroup.md +100 -0
  134. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuRadioItem.md +106 -0
  135. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuSeparator.md +100 -0
  136. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuShortcut.md +100 -0
  137. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuSub.md +58 -0
  138. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuSubContent.md +100 -0
  139. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuSubTrigger.md +106 -0
  140. package/dist/reference/sdk-api/ui/dropdown-menu/DropdownMenuTrigger.md +119 -0
  141. package/dist/reference/sdk-api/ui/dropdown-menu/index.md +23 -0
  142. package/dist/reference/sdk-api/ui/empty/Empty.md +100 -0
  143. package/dist/reference/sdk-api/ui/empty/EmptyContent.md +100 -0
  144. package/dist/reference/sdk-api/ui/empty/EmptyDescription.md +100 -0
  145. package/dist/reference/sdk-api/ui/empty/EmptyHeader.md +100 -0
  146. package/dist/reference/sdk-api/ui/empty/EmptyMedia.md +106 -0
  147. package/dist/reference/sdk-api/ui/empty/EmptyTitle.md +100 -0
  148. package/dist/reference/sdk-api/ui/empty/index.md +14 -0
  149. package/dist/reference/sdk-api/ui/field/Field.md +106 -0
  150. package/dist/reference/sdk-api/ui/field/FieldContent.md +100 -0
  151. package/dist/reference/sdk-api/ui/field/FieldDescription.md +100 -0
  152. package/dist/reference/sdk-api/ui/field/FieldError.md +112 -0
  153. package/dist/reference/sdk-api/ui/field/FieldGroup.md +100 -0
  154. package/dist/reference/sdk-api/ui/field/FieldLabel.md +85 -0
  155. package/dist/reference/sdk-api/ui/field/FieldLegend.md +106 -0
  156. package/dist/reference/sdk-api/ui/field/FieldSeparator.md +105 -0
  157. package/dist/reference/sdk-api/ui/field/FieldSet.md +100 -0
  158. package/dist/reference/sdk-api/ui/field/FieldTitle.md +100 -0
  159. package/dist/reference/sdk-api/ui/field/index.md +18 -0
  160. package/dist/reference/sdk-api/ui/helpers/collectDataIconState.md +66 -0
  161. package/dist/reference/sdk-api/ui/helpers/index.md +9 -0
  162. package/dist/reference/sdk-api/ui/index.md +57 -0
  163. package/dist/reference/sdk-api/ui/input/Input.md +141 -0
  164. package/dist/reference/sdk-api/ui/input/index.md +9 -0
  165. package/dist/reference/sdk-api/ui/input-group/InputGroup.md +100 -0
  166. package/dist/reference/sdk-api/ui/input-group/InputGroupAddon.md +109 -0
  167. package/dist/reference/sdk-api/ui/input-group/InputGroupButton.md +220 -0
  168. package/dist/reference/sdk-api/ui/input-group/InputGroupInput.md +135 -0
  169. package/dist/reference/sdk-api/ui/input-group/InputGroupText.md +100 -0
  170. package/dist/reference/sdk-api/ui/input-group/InputGroupTextarea.md +126 -0
  171. package/dist/reference/sdk-api/ui/input-group/index.md +14 -0
  172. package/dist/reference/sdk-api/ui/input-otp/InputOTP.md +111 -0
  173. package/dist/reference/sdk-api/ui/input-otp/InputOTPGroup.md +100 -0
  174. package/dist/reference/sdk-api/ui/input-otp/InputOTPSeparator.md +100 -0
  175. package/dist/reference/sdk-api/ui/input-otp/InputOTPSlot.md +107 -0
  176. package/dist/reference/sdk-api/ui/input-otp/index.md +12 -0
  177. package/dist/reference/sdk-api/ui/item/Item.md +115 -0
  178. package/dist/reference/sdk-api/ui/item/ItemActions.md +100 -0
  179. package/dist/reference/sdk-api/ui/item/ItemContent.md +100 -0
  180. package/dist/reference/sdk-api/ui/item/ItemDescription.md +100 -0
  181. package/dist/reference/sdk-api/ui/item/ItemFooter.md +100 -0
  182. package/dist/reference/sdk-api/ui/item/ItemGroup.md +100 -0
  183. package/dist/reference/sdk-api/ui/item/ItemHeader.md +100 -0
  184. package/dist/reference/sdk-api/ui/item/ItemMedia.md +106 -0
  185. package/dist/reference/sdk-api/ui/item/ItemSeparator.md +106 -0
  186. package/dist/reference/sdk-api/ui/item/ItemTitle.md +100 -0
  187. package/dist/reference/sdk-api/ui/item/index.md +18 -0
  188. package/dist/reference/sdk-api/ui/label/Label.md +85 -0
  189. package/dist/reference/sdk-api/ui/label/index.md +9 -0
  190. package/dist/reference/sdk-api/ui/menubar/Menubar.md +100 -0
  191. package/dist/reference/sdk-api/ui/menubar/MenubarCheckboxItem.md +111 -0
  192. package/dist/reference/sdk-api/ui/menubar/MenubarContent.md +108 -0
  193. package/dist/reference/sdk-api/ui/menubar/MenubarGroup.md +100 -0
  194. package/dist/reference/sdk-api/ui/menubar/MenubarItem.md +109 -0
  195. package/dist/reference/sdk-api/ui/menubar/MenubarLabel.md +106 -0
  196. package/dist/reference/sdk-api/ui/menubar/MenubarMenu.md +55 -0
  197. package/dist/reference/sdk-api/ui/menubar/MenubarPortal.md +55 -0
  198. package/dist/reference/sdk-api/ui/menubar/MenubarRadioGroup.md +108 -0
  199. package/dist/reference/sdk-api/ui/menubar/MenubarRadioItem.md +110 -0
  200. package/dist/reference/sdk-api/ui/menubar/MenubarSeparator.md +100 -0
  201. package/dist/reference/sdk-api/ui/menubar/MenubarShortcut.md +100 -0
  202. package/dist/reference/sdk-api/ui/menubar/MenubarSub.md +58 -0
  203. package/dist/reference/sdk-api/ui/menubar/MenubarSubContent.md +108 -0
  204. package/dist/reference/sdk-api/ui/menubar/MenubarSubTrigger.md +107 -0
  205. package/dist/reference/sdk-api/ui/menubar/MenubarTrigger.md +100 -0
  206. package/dist/reference/sdk-api/ui/menubar/index.md +24 -0
  207. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenu.md +100 -0
  208. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuContent.md +106 -0
  209. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuIndicator.md +100 -0
  210. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuItem.md +106 -0
  211. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuLink.md +106 -0
  212. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuList.md +100 -0
  213. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuPositioner.md +100 -0
  214. package/dist/reference/sdk-api/ui/navigation-menu/NavigationMenuTrigger.md +120 -0
  215. package/dist/reference/sdk-api/ui/navigation-menu/index.md +17 -0
  216. package/dist/reference/sdk-api/ui/navigation-menu/navigationMenuTriggerStyle.md +64 -0
  217. package/dist/reference/sdk-api/ui/pagination/Pagination.md +100 -0
  218. package/dist/reference/sdk-api/ui/pagination/PaginationContent.md +100 -0
  219. package/dist/reference/sdk-api/ui/pagination/PaginationEllipsis.md +100 -0
  220. package/dist/reference/sdk-api/ui/pagination/PaginationItem.md +100 -0
  221. package/dist/reference/sdk-api/ui/pagination/PaginationLink.md +107 -0
  222. package/dist/reference/sdk-api/ui/pagination/PaginationNext.md +121 -0
  223. package/dist/reference/sdk-api/ui/pagination/PaginationPrevious.md +121 -0
  224. package/dist/reference/sdk-api/ui/pagination/index.md +15 -0
  225. package/dist/reference/sdk-api/ui/popover/Popover.md +58 -0
  226. package/dist/reference/sdk-api/ui/popover/PopoverAnchor.md +100 -0
  227. package/dist/reference/sdk-api/ui/popover/PopoverContent.md +108 -0
  228. package/dist/reference/sdk-api/ui/popover/PopoverDescription.md +100 -0
  229. package/dist/reference/sdk-api/ui/popover/PopoverHeader.md +100 -0
  230. package/dist/reference/sdk-api/ui/popover/PopoverTitle.md +100 -0
  231. package/dist/reference/sdk-api/ui/popover/PopoverTrigger.md +119 -0
  232. package/dist/reference/sdk-api/ui/popover/index.md +15 -0
  233. package/dist/reference/sdk-api/ui/portal/Portal.md +55 -0
  234. package/dist/reference/sdk-api/ui/portal/index.md +9 -0
  235. package/dist/reference/sdk-api/ui/progress/Progress.md +109 -0
  236. package/dist/reference/sdk-api/ui/progress/ProgressIndicator.md +107 -0
  237. package/dist/reference/sdk-api/ui/progress/ProgressLabel.md +100 -0
  238. package/dist/reference/sdk-api/ui/progress/ProgressTrack.md +100 -0
  239. package/dist/reference/sdk-api/ui/progress/ProgressValue.md +105 -0
  240. package/dist/reference/sdk-api/ui/progress/index.md +13 -0
  241. package/dist/reference/sdk-api/ui/radio-group/RadioGroup.md +108 -0
  242. package/dist/reference/sdk-api/ui/radio-group/RadioGroupItem.md +107 -0
  243. package/dist/reference/sdk-api/ui/radio-group/index.md +10 -0
  244. package/dist/reference/sdk-api/ui/resizable/ResizableHandle.md +107 -0
  245. package/dist/reference/sdk-api/ui/resizable/ResizablePanel.md +108 -0
  246. package/dist/reference/sdk-api/ui/resizable/ResizablePanelGroup.md +107 -0
  247. package/dist/reference/sdk-api/ui/resizable/index.md +11 -0
  248. package/dist/reference/sdk-api/ui/scroll-area/ScrollArea.md +159 -0
  249. package/dist/reference/sdk-api/ui/scroll-area/ScrollBar.md +106 -0
  250. package/dist/reference/sdk-api/ui/scroll-area/index.md +10 -0
  251. package/dist/reference/sdk-api/ui/select/Select.md +80 -0
  252. package/dist/reference/sdk-api/ui/select/SelectContent.md +106 -0
  253. package/dist/reference/sdk-api/ui/select/SelectGroup.md +100 -0
  254. package/dist/reference/sdk-api/ui/select/SelectItem.md +106 -0
  255. package/dist/reference/sdk-api/ui/select/SelectLabel.md +100 -0
  256. package/dist/reference/sdk-api/ui/select/SelectScrollDownButton.md +100 -0
  257. package/dist/reference/sdk-api/ui/select/SelectScrollUpButton.md +100 -0
  258. package/dist/reference/sdk-api/ui/select/SelectSeparator.md +100 -0
  259. package/dist/reference/sdk-api/ui/select/SelectTrigger.md +106 -0
  260. package/dist/reference/sdk-api/ui/select/SelectValue.md +106 -0
  261. package/dist/reference/sdk-api/ui/select/index.md +18 -0
  262. package/dist/reference/sdk-api/ui/separator/Separator.md +106 -0
  263. package/dist/reference/sdk-api/ui/separator/index.md +9 -0
  264. package/dist/reference/sdk-api/ui/sheet/Sheet.md +58 -0
  265. package/dist/reference/sdk-api/ui/sheet/SheetClose.md +100 -0
  266. package/dist/reference/sdk-api/ui/sheet/SheetContent.md +113 -0
  267. package/dist/reference/sdk-api/ui/sheet/SheetDescription.md +100 -0
  268. package/dist/reference/sdk-api/ui/sheet/SheetFooter.md +100 -0
  269. package/dist/reference/sdk-api/ui/sheet/SheetHeader.md +100 -0
  270. package/dist/reference/sdk-api/ui/sheet/SheetOverlay.md +100 -0
  271. package/dist/reference/sdk-api/ui/sheet/SheetPortal.md +55 -0
  272. package/dist/reference/sdk-api/ui/sheet/SheetTitle.md +100 -0
  273. package/dist/reference/sdk-api/ui/sheet/SheetTrigger.md +100 -0
  274. package/dist/reference/sdk-api/ui/sheet/index.md +18 -0
  275. package/dist/reference/sdk-api/ui/skeleton/Skeleton.md +100 -0
  276. package/dist/reference/sdk-api/ui/skeleton/index.md +9 -0
  277. package/dist/reference/sdk-api/ui/slider/Slider.md +116 -0
  278. package/dist/reference/sdk-api/ui/slider/index.md +9 -0
  279. package/dist/reference/sdk-api/ui/sonner/Toaster.md +43 -0
  280. package/dist/reference/sdk-api/ui/sonner/index.md +10 -0
  281. package/dist/reference/sdk-api/ui/sonner/toast.md +58 -0
  282. package/dist/reference/sdk-api/ui/spinner/Spinner.md +100 -0
  283. package/dist/reference/sdk-api/ui/spinner/index.md +9 -0
  284. package/dist/reference/sdk-api/ui/switch/Switch.md +110 -0
  285. package/dist/reference/sdk-api/ui/switch/index.md +9 -0
  286. package/dist/reference/sdk-api/ui/table/Table.md +100 -0
  287. package/dist/reference/sdk-api/ui/table/TableBody.md +100 -0
  288. package/dist/reference/sdk-api/ui/table/TableCaption.md +100 -0
  289. package/dist/reference/sdk-api/ui/table/TableCell.md +106 -0
  290. package/dist/reference/sdk-api/ui/table/TableFooter.md +100 -0
  291. package/dist/reference/sdk-api/ui/table/TableHead.md +106 -0
  292. package/dist/reference/sdk-api/ui/table/TableHeader.md +100 -0
  293. package/dist/reference/sdk-api/ui/table/TableRow.md +100 -0
  294. package/dist/reference/sdk-api/ui/table/index.md +16 -0
  295. package/dist/reference/sdk-api/ui/tabs/Tabs.md +109 -0
  296. package/dist/reference/sdk-api/ui/tabs/TabsContent.md +106 -0
  297. package/dist/reference/sdk-api/ui/tabs/TabsList.md +106 -0
  298. package/dist/reference/sdk-api/ui/tabs/TabsTrigger.md +107 -0
  299. package/dist/reference/sdk-api/ui/tabs/index.md +13 -0
  300. package/dist/reference/sdk-api/ui/tabs/tabsListVariants.md +70 -0
  301. package/dist/reference/sdk-api/ui/textarea/Textarea.md +126 -0
  302. package/dist/reference/sdk-api/ui/textarea/index.md +9 -0
  303. package/dist/reference/sdk-api/ui/toggle/Toggle.md +118 -0
  304. package/dist/reference/sdk-api/ui/toggle/index.md +10 -0
  305. package/dist/reference/sdk-api/ui/toggle/toggleVariants.md +71 -0
  306. package/dist/reference/sdk-api/ui/toggle-group/ToggleGroup.md +122 -0
  307. package/dist/reference/sdk-api/ui/toggle-group/ToggleGroupItem.md +116 -0
  308. package/dist/reference/sdk-api/ui/toggle-group/index.md +10 -0
  309. package/dist/reference/sdk-api.json +74470 -146
  310. package/dist/reference/sdk-api.md +62 -3
  311. package/dist/ui/accordion.d.ts +48 -0
  312. package/dist/ui/accordion.js +40 -0
  313. package/dist/ui/accordion.js.map +1 -1
  314. package/dist/ui/alert-dialog.d.ts +123 -0
  315. package/dist/ui/alert-dialog.js +114 -0
  316. package/dist/ui/alert-dialog.js.map +1 -1
  317. package/dist/ui/alert.d.ts +41 -0
  318. package/dist/ui/alert.js +41 -0
  319. package/dist/ui/alert.js.map +1 -1
  320. package/dist/ui/aspect-ratio.d.ts +11 -0
  321. package/dist/ui/aspect-ratio.js +10 -0
  322. package/dist/ui/aspect-ratio.js.map +1 -1
  323. package/dist/ui/avatar.d.ts +65 -0
  324. package/dist/ui/avatar.js +63 -0
  325. package/dist/ui/avatar.js.map +1 -1
  326. package/dist/ui/badge.d.ts +22 -0
  327. package/dist/ui/badge.js +22 -0
  328. package/dist/ui/badge.js.map +1 -1
  329. package/dist/ui/button-group.d.ts +45 -0
  330. package/dist/ui/button-group.js +43 -0
  331. package/dist/ui/button-group.js.map +1 -1
  332. package/dist/ui/button.d.ts +52 -0
  333. package/dist/ui/button.js +30 -0
  334. package/dist/ui/button.js.map +1 -1
  335. package/dist/ui/calendar.d.ts +44 -0
  336. package/dist/ui/calendar.js +19 -0
  337. package/dist/ui/calendar.js.map +1 -1
  338. package/dist/ui/card.d.ts +71 -0
  339. package/dist/ui/card.js +70 -0
  340. package/dist/ui/card.js.map +1 -1
  341. package/dist/ui/carousel.d.ts +71 -0
  342. package/dist/ui/carousel.js +66 -0
  343. package/dist/ui/carousel.js.map +1 -1
  344. package/dist/ui/checkbox.d.ts +14 -0
  345. package/dist/ui/checkbox.js +10 -0
  346. package/dist/ui/checkbox.js.map +1 -1
  347. package/dist/ui/collapsible.d.ts +37 -0
  348. package/dist/ui/collapsible.js +30 -0
  349. package/dist/ui/collapsible.js.map +1 -1
  350. package/dist/ui/combobox.d.ts +190 -0
  351. package/dist/ui/combobox.js +167 -0
  352. package/dist/ui/combobox.js.map +1 -1
  353. package/dist/ui/dialog.d.ts +109 -0
  354. package/dist/ui/dialog.js +100 -0
  355. package/dist/ui/dialog.js.map +1 -1
  356. package/dist/ui/drawer.d.ts +106 -0
  357. package/dist/ui/drawer.js +100 -0
  358. package/dist/ui/drawer.js.map +1 -1
  359. package/dist/ui/dropdown-menu.d.ts +171 -0
  360. package/dist/ui/dropdown-menu.js +150 -0
  361. package/dist/ui/dropdown-menu.js.map +1 -1
  362. package/dist/ui/empty.d.ts +61 -0
  363. package/dist/ui/empty.js +61 -0
  364. package/dist/ui/empty.js.map +1 -1
  365. package/dist/ui/field.d.ts +105 -0
  366. package/dist/ui/field.js +101 -0
  367. package/dist/ui/field.js.map +1 -1
  368. package/dist/ui/helpers.d.ts +11 -0
  369. package/dist/ui/helpers.js +11 -0
  370. package/dist/ui/helpers.js.map +1 -1
  371. package/dist/ui/input-group.d.ts +65 -0
  372. package/dist/ui/input-group.js +65 -0
  373. package/dist/ui/input-group.js.map +1 -1
  374. package/dist/ui/input-otp.d.ts +48 -0
  375. package/dist/ui/input-otp.js +40 -0
  376. package/dist/ui/input-otp.js.map +1 -1
  377. package/dist/ui/input.d.ts +24 -2
  378. package/dist/ui/input.js +20 -0
  379. package/dist/ui/input.js.map +1 -1
  380. package/dist/ui/item.d.ts +103 -0
  381. package/dist/ui/item.js +103 -0
  382. package/dist/ui/item.js.map +1 -1
  383. package/dist/ui/label.d.ts +10 -0
  384. package/dist/ui/label.js +10 -0
  385. package/dist/ui/label.js.map +1 -1
  386. package/dist/ui/menubar.d.ts +193 -0
  387. package/dist/ui/menubar.js +160 -0
  388. package/dist/ui/menubar.js.map +1 -1
  389. package/dist/ui/navigation-menu.d.ts +98 -0
  390. package/dist/ui/navigation-menu.js +90 -0
  391. package/dist/ui/navigation-menu.js.map +1 -1
  392. package/dist/ui/pagination.d.ts +76 -0
  393. package/dist/ui/pagination.js +73 -0
  394. package/dist/ui/pagination.js.map +1 -1
  395. package/dist/ui/popover.d.ts +81 -0
  396. package/dist/ui/popover.js +70 -0
  397. package/dist/ui/popover.js.map +1 -1
  398. package/dist/ui/portal.d.ts +11 -0
  399. package/dist/ui/portal.js +10 -0
  400. package/dist/ui/portal.js.map +1 -1
  401. package/dist/ui/progress.d.ts +53 -26
  402. package/dist/ui/progress.js +50 -26
  403. package/dist/ui/progress.js.map +1 -1
  404. package/dist/ui/radio-group.d.ts +25 -0
  405. package/dist/ui/radio-group.js +20 -0
  406. package/dist/ui/radio-group.js.map +1 -1
  407. package/dist/ui/resizable.d.ts +37 -0
  408. package/dist/ui/resizable.js +30 -0
  409. package/dist/ui/resizable.js.map +1 -1
  410. package/dist/ui/scroll-area.d.ts +22 -0
  411. package/dist/ui/scroll-area.js +21 -0
  412. package/dist/ui/scroll-area.js.map +1 -1
  413. package/dist/ui/select.d.ts +122 -0
  414. package/dist/ui/select.js +108 -0
  415. package/dist/ui/select.js.map +1 -1
  416. package/dist/ui/separator.d.ts +11 -0
  417. package/dist/ui/separator.js +10 -0
  418. package/dist/ui/separator.js.map +1 -1
  419. package/dist/ui/sheet.d.ts +107 -0
  420. package/dist/ui/sheet.js +101 -0
  421. package/dist/ui/sheet.js.map +1 -1
  422. package/dist/ui/skeleton.d.ts +10 -0
  423. package/dist/ui/skeleton.js +10 -0
  424. package/dist/ui/skeleton.js.map +1 -1
  425. package/dist/ui/slider.d.ts +21 -0
  426. package/dist/ui/slider.js +14 -0
  427. package/dist/ui/slider.js.map +1 -1
  428. package/dist/ui/sonner.d.ts +23 -0
  429. package/dist/ui/sonner.js +21 -0
  430. package/dist/ui/sonner.js.map +1 -1
  431. package/dist/ui/spinner.d.ts +10 -0
  432. package/dist/ui/spinner.js +10 -0
  433. package/dist/ui/spinner.js.map +1 -1
  434. package/dist/ui/switch.d.ts +15 -0
  435. package/dist/ui/switch.js +10 -0
  436. package/dist/ui/switch.js.map +1 -1
  437. package/dist/ui/table.d.ts +81 -0
  438. package/dist/ui/table.js +80 -0
  439. package/dist/ui/table.js.map +1 -1
  440. package/dist/ui/tabs.d.ts +59 -0
  441. package/dist/ui/tabs.js +51 -0
  442. package/dist/ui/tabs.js.map +1 -1
  443. package/dist/ui/textarea.d.ts +13 -0
  444. package/dist/ui/textarea.js +13 -0
  445. package/dist/ui/textarea.js.map +1 -1
  446. package/dist/ui/toggle-group.d.ts +34 -0
  447. package/dist/ui/toggle-group.js +24 -0
  448. package/dist/ui/toggle-group.js.map +1 -1
  449. package/dist/ui/toggle.d.ts +28 -0
  450. package/dist/ui/toggle.js +24 -0
  451. package/dist/ui/toggle.js.map +1 -1
  452. package/package.json +4 -2
  453. package/release-provenance.json +15 -0
  454. package/src/adapters/interest-card/eslint/eslint-plugin-custom-navigation.mjs +2 -0
  455. package/src/adapters/interest-card/eslint/taro.mjs +21 -0
  456. package/src/adapters/interest-card/runtime/microapp.ts +11 -0
  457. package/src/adapters/interest-card/types/taro.d.ts +28 -0
  458. package/src/build/config-overrides.ts +39 -0
  459. package/src/build/index.ts +5 -0
  460. package/src/build/plugins/app-config.ts +47 -0
  461. package/src/build/plugins/depend-card/analyze.ts +122 -0
  462. package/src/build/plugins/depend-card/source.ts +97 -0
  463. package/src/build/plugins/vite-depend-card.ts +168 -0
  464. package/src/build/plugins/vite-image-asset-import.ts +178 -0
  465. package/src/build/plugins/vite-inline-json.ts +149 -0
  466. package/src/build/plugins/vite-taro-source-location.ts +224 -0
  467. package/src/build/plugins/vite-tt-components-entry.ts +33 -0
  468. package/src/build/taro.ts +830 -0
  469. package/src/components/miniapp-open-card.ts +94 -0
  470. package/src/components/native-miniapp-open-card.ts +7 -0
  471. package/src/eslint/eslint-plugin-custom-navigation.mjs +290 -0
  472. package/src/eslint/eslint-plugin-microapp-pages.mjs +659 -0
  473. package/src/eslint/server.mjs +69 -0
  474. package/src/eslint/taro.mjs +564 -0
  475. package/src/index.ts +2 -0
  476. package/src/internal/runtime/douyin-open-button.d.ts +29 -0
  477. package/src/internal/runtime/iframe-auth/identity.ts +236 -0
  478. package/src/internal/runtime/iframe-auth/index.ts +2 -0
  479. package/src/internal/runtime/iframe-auth/sync.ts +37 -0
  480. package/src/internal/vendor-modules.d.ts +8 -0
  481. package/src/lib/measure.ts +115 -0
  482. package/src/lib/platform.ts +11 -0
  483. package/src/lib/utils.ts +6 -0
  484. package/src/runtime/client.ts +246 -0
  485. package/src/runtime/default-client.ts +26 -0
  486. package/src/runtime/default-iframe-auth.ts +13 -0
  487. package/src/runtime/douyin-container-request.ts +367 -0
  488. package/src/runtime/douyin-login-request.ts +514 -0
  489. package/src/runtime/globals.d.ts +342 -0
  490. package/src/runtime/index.ts +4 -0
  491. package/src/runtime/network-url.ts +63 -0
  492. package/src/ui/accordion.tsx +226 -0
  493. package/src/ui/alert-dialog.tsx +407 -0
  494. package/src/ui/alert.tsx +149 -0
  495. package/src/ui/aspect-ratio.tsx +37 -0
  496. package/src/ui/avatar.tsx +238 -0
  497. package/src/ui/badge.tsx +77 -0
  498. package/src/ui/button-group.tsx +173 -0
  499. package/src/ui/button.tsx +215 -0
  500. package/src/ui/calendar.tsx +353 -0
  501. package/src/ui/card.tsx +217 -0
  502. package/src/ui/carousel.tsx +259 -0
  503. package/src/ui/checkbox.tsx +62 -0
  504. package/src/ui/collapsible.tsx +148 -0
  505. package/src/ui/combobox.tsx +650 -0
  506. package/src/ui/dialog.tsx +290 -0
  507. package/src/ui/drawer.tsx +272 -0
  508. package/src/ui/dropdown-menu.tsx +547 -0
  509. package/src/ui/empty.tsx +166 -0
  510. package/src/ui/field.tsx +427 -0
  511. package/src/ui/helpers.tsx +39 -0
  512. package/src/ui/index.ts +47 -0
  513. package/src/ui/input-group.tsx +320 -0
  514. package/src/ui/input-otp.tsx +189 -0
  515. package/src/ui/input.tsx +60 -0
  516. package/src/ui/item.tsx +338 -0
  517. package/src/ui/label.tsx +31 -0
  518. package/src/ui/menubar.tsx +835 -0
  519. package/src/ui/navigation-menu.tsx +341 -0
  520. package/src/ui/pagination.tsx +195 -0
  521. package/src/ui/popover.tsx +363 -0
  522. package/src/ui/portal.tsx +31 -0
  523. package/src/ui/progress.tsx +182 -0
  524. package/src/ui/radio-group.tsx +111 -0
  525. package/src/ui/resizable.tsx +410 -0
  526. package/src/ui/scroll-area.tsx +102 -0
  527. package/src/ui/select.tsx +471 -0
  528. package/src/ui/separator.tsx +37 -0
  529. package/src/ui/sheet.tsx +289 -0
  530. package/src/ui/skeleton.tsx +25 -0
  531. package/src/ui/slider.tsx +176 -0
  532. package/src/ui/sonner.tsx +40 -0
  533. package/src/ui/spinner.tsx +23 -0
  534. package/src/ui/switch.tsx +94 -0
  535. package/src/ui/table.tsx +240 -0
  536. package/src/ui/tabs.tsx +233 -0
  537. package/src/ui/tailwind.css +2 -0
  538. package/src/ui/textarea.tsx +49 -0
  539. package/src/ui/theme.css +234 -0
  540. package/src/ui/toggle-group.tsx +215 -0
  541. package/src/ui/toggle.tsx +113 -0
@@ -0,0 +1,219 @@
1
+ # CarouselNext
2
+
3
+ <!-- Generated by build/src/sdk-reference/skill-reference.ts. Do not edit. -->
4
+
5
+ 导入路径:`@open-dy/vibecoding-sdk-taro/ui/carousel`
6
+ 源码:实际安装的 `@open-dy/vibecoding-sdk-taro` 包内 `src/ui/carousel.tsx`(仅补缺或排错时读取)。
7
+
8
+ #### 说明
9
+
10
+ 轮播下一项按钮。
11
+
12
+ 参数:
13
+
14
+ | 名称 | 说明 |
15
+ | --- | --- |
16
+ | `props` | 组件属性;自有字段的用途及默认行为见下表,继承属性另列。 |
17
+
18
+ 返回:组件渲染结果;类型见返回值契约。
19
+
20
+ 示例:
21
+
22
+ ```tsx
23
+ import { Carousel, CarouselNext } from '@open-dy/vibecoding-sdk-taro/ui/carousel'
24
+ <Carousel><CarouselNext /></Carousel>
25
+ ```
26
+
27
+ #### AI 使用约束
28
+
29
+ | 规则 | 内容 |
30
+ | --- | --- |
31
+ | 意图 | 普通小程序或兴趣卡落地页:轮播下一项按钮。 |
32
+ | 适用时机 | 普通小程序或兴趣卡落地页需要该 UI 模块时,按模块示例组合使用。 |
33
+ | 避免 | 不要用于 Feed OpenCard。属性与组合方式以本页类型和示例为准。 |
34
+
35
+ #### 声明
36
+
37
+ ```ts
38
+ declare function CarouselNext(props: ViewProps & VariantProps<(props?: (ConfigVariants<{ variant: { default: string; outline: string; secondary: string; ghost: string; destructive: string; link: string; }; size: { default: string; xs: string; sm: string; lg: string; icon: string; "icon-xs": string; "icon-sm": string; "icon-lg": string; }; }> & ClassProp) | undefined) => string> & Omit<ButtonProps, TaroButtonNativeKeys> & DouyinButtonExtras & { disabled?: boolean; }): React.JSX.Element;
39
+ ```
40
+
41
+ #### 参数
42
+
43
+ - `props`
44
+
45
+ ```ts
46
+ ViewProps & VariantProps<(props?: (ConfigVariants<{ variant: { default: string;
47
+ outline: string;
48
+ secondary: string;
49
+ ghost: string;
50
+ destructive: string;
51
+ link: string; };
52
+ size: { default: string;
53
+ xs: string;
54
+ sm: string;
55
+ lg: string;
56
+ icon: string; "icon-xs": string; "icon-sm": string; "icon-lg": string; }; }> & ClassProp) | undefined) => string> & Omit<ButtonProps, TaroButtonNativeKeys> & DouyinButtonExtras & { disabled?: boolean; }
57
+ ```
58
+ 说明:组件属性;自有字段的用途及默认行为见下表,继承属性另列。
59
+
60
+ ##### props 组件属性
61
+
62
+ | 字段 | 类型 | 说明 |
63
+ | --- | --- | --- |
64
+ | variant? | `"default" \| "link" \| "outline" \| "secondary" \| "ghost" \| "destructive" \| null \| undefined` | 按钮外观,默认 outline;其余变体同 Button.variant。 |
65
+ | size? | `"default" \| "xs" \| "sm" \| "lg" \| "icon" \| "icon-xs" \| "icon-sm" \| "icon-lg" \| null \| undefined` | 按钮尺寸,默认 icon-sm(size-7);可按 Button.size 选择其他尺寸。 |
66
+ | disabled? | `boolean \| undefined` | 沿用 Button 的原生属性;普通 View 分支不保证阻止点击。边界状态由轮播组件自身的 canScrollPrev/canScrollNext 样式控制。 |
67
+ | dataVideoId? | `string \| undefined` | navigateToVideoView 的视频标识;优先于 data-video-id,同时注入两种拼写给原生按钮。其他 openType 仅透传。 |
68
+ | dataVideoType? | `string \| undefined` | 视频类型;优先于 data-video-type。navigateToVideoView 场景省略时为 "raw",其他场景不设置默认值。 |
69
+ | dataChannel? | `string \| undefined` | 原生视频能力的渠道参数;优先于 data-channel,未提供时不注入。不控制 SDK 网络通道。 |
70
+ | data-video-id? | `string \| undefined` | dataVideoId 的兼容写法;两者都提供时以 dataVideoId 为准。 |
71
+ | data-video-type? | `string \| undefined` | dataVideoType 的兼容写法;两者都提供时以 dataVideoType 为准。 |
72
+ | data-channel? | `string \| undefined` | dataChannel 的兼容写法;两者都提供时以 dataChannel 为准。 |
73
+ | onNavigateToVideoView? | `(((event: DouyinOpenTypeDetailEvent) => void) & ((event: OpenTypeDetailEvent) => void)) \| undefined` | 仅在原生 navigateToVideoView 能力分支中透传的结果回调;event.detail 可缺省,不代表业务点击回调。 |
74
+ | onAddShortcut? | `(((event: DouyinOpenTypeDetailEvent) => void) & ((event: OpenTypeDetailEvent) => void)) \| undefined` | 仅在原生 addShortcut 能力分支中透传的结果回调;结果从 event.detail 读取,普通 View 按钮不会主动调用。 |
75
+
76
+ - `openType?`
77
+
78
+ ```ts
79
+ "contact" | "share" | "getPhoneNumber" | "getRealtimePhoneNumber" | "getUserInfo" | "launchApp" | "openSetting" | "feedback" | "chooseAvatar" | "agreePrivacyAuthorization" | "getPhoneNumber|agreePrivacyAuthorization" | "getRealtimePhoneNumber|agreePrivacyAuthorization" | "getUserInfo|agreePrivacyAuthorization" | "getAuthorize" | "contactShare" | "lifestyle" | "openGroupProfile" | "addFriend" | "addColorSign" | "openPublicProfile" | "addGroupApp" | "shareMessageToFriend" | "im" | "platformIm" | "navigateToVideoView" | "openAwemeUserProfile" | "openWebcastRoom" | "addCalendarEvent" | "addShortcut" | "joinGroup" | "privateMessage" | "authorizePrivateMessage" | "liveActivity" | "getPhoneNumberAndRiskLevel" | undefined
80
+ ```
81
+ 说明:抖音原生按钮能力类型;非空时改用 Taro Button 并透传该值,否则渲染 View。可用值和授权要求以目标平台能力为准。
82
+
83
+ ###### onNavigateToVideoView 回调参数
84
+
85
+ | 字段 | 类型 | 说明 |
86
+ | --- | --- | --- |
87
+ | event | `OpenTypeDetailEvent` | |
88
+
89
+ ###### onNavigateToVideoView.event 子字段
90
+
91
+ | 字段 | 类型 | 说明 |
92
+ | --- | --- | --- |
93
+ | detail? | `{ errMsg?: string; errNo?: number; } \| undefined` | 原生能力回调的结果明细;平台未提供时可缺省,使用前需判空。 |
94
+
95
+ ###### onNavigateToVideoView.event.detail 子字段
96
+
97
+ | 字段 | 类型 | 说明 |
98
+ | --- | --- | --- |
99
+ | errMsg? | `string \| undefined` | 平台提供的结果或错误描述;可缺省,请保留原文用于判断和诊断。 |
100
+ | errNo? | `number \| undefined` | 平台提供的数值结果码;可缺省,含义以所用原生能力的契约为准。 |
101
+
102
+ ###### onAddShortcut 回调参数
103
+
104
+ | 字段 | 类型 | 说明 |
105
+ | --- | --- | --- |
106
+ | event | `OpenTypeDetailEvent` | |
107
+
108
+ ###### onAddShortcut.event 子字段
109
+
110
+ | 字段 | 类型 | 说明 |
111
+ | --- | --- | --- |
112
+ | detail? | `{ errMsg?: string; errNo?: number; } \| undefined` | 原生能力回调的结果明细;平台未提供时可缺省,使用前需判空。 |
113
+
114
+ ###### onAddShortcut.event.detail 子字段
115
+
116
+ | 字段 | 类型 | 说明 |
117
+ | --- | --- | --- |
118
+ | errMsg? | `string \| undefined` | 平台提供的结果或错误描述;可缺省,请保留原文用于判断和诊断。 |
119
+ | errNo? | `number \| undefined` | 平台提供的数值结果码;可缺省,含义以所用原生能力的契约为准。 |
120
+
121
+ <details>
122
+
123
+ <summary>继承的 Taro / React 属性</summary>
124
+
125
+ 以下字段沿用上游类型;组件有特殊处理时,以本页组件属性说明为准。
126
+
127
+ ##### 继承属性
128
+
129
+ | 字段 | 类型 | 说明 |
130
+ | --- | --- | --- |
131
+ | hoverClass? | `string \| undefined` | 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果 |
132
+ | hoverStyle? | `any` | 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。 |
133
+ | hoverStopPropagation? | `boolean \| undefined` | 指定是否阻止本节点的祖先节点出现点击态 |
134
+ | hoverStartTime? | `number \| undefined` | 按住后多久出现点击态,单位毫秒 |
135
+ | hoverStayTime? | `number \| undefined` | 手指松开后点击态保留时间,单位毫秒 |
136
+ | disableScroll? | `boolean \| undefined` | 是否阻止区域内滚动页面。 说明: 如果 view 中嵌套 view,外层 view 设置 disable-scroll 为 true 时禁止内部的滚动。 |
137
+ | hidden? | `boolean \| undefined` | 是否隐藏。 |
138
+ | animation? | `TaroGeneral.IAnyObject \| undefined` | 用于动画,详见 my.createAnimation 。使用 my.createAnimation 生成的动画是通过过渡(Transition)实现的,只会触发 onTransitionEnd,不会触发 onAnimationStart, onAnimationIteration, onAnimationEnd。 |
139
+ | role? | `string \| undefined` | 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。 |
140
+ | ariaRole? | `string \| undefined` | 无障碍访问,(角色)标识元素的作用 |
141
+ | ariaLabel? | `string \| undefined` | 无障碍访问,(属性)元素的额外描述 |
142
+ | onTap? | `CommonEventFunction \| undefined` | 点击。 |
143
+ | onTouchStart? | `CommonEventFunction \| undefined` | 触摸动作开始。 |
144
+ | onTouchMove? | `CommonEventFunction \| undefined` | 触摸后移动。 |
145
+ | onTouchEnd? | `CommonEventFunction \| undefined` | 触摸动作结束。 |
146
+ | onTouchCancel? | `CommonEventFunction \| undefined` | 触摸动作被打断,如来电提醒,弹窗。 |
147
+ | onLongTap? | `CommonEventFunction \| undefined` | 长按 500ms 之后触发,触发了长按事件后进行移动将不会触发屏幕的滚动。 |
148
+ | onTransitionEnd? | `CommonEventFunction \| undefined` | 过渡(Transition)结束时触发。 |
149
+ | onAnimationIteration? | `CommonEventFunction \| undefined` | 每开启一次新的动画过程时触发。(第一次不触发) |
150
+ | onAnimationStart? | `CommonEventFunction \| undefined` | 动画开始时触发。 |
151
+ | onAnimationEnd? | `CommonEventFunction \| undefined` | 动画结束时触发。 |
152
+ | onAppear? | `CommonEventFunction \| undefined` | 当前元素可见面积超过50%时触发。 |
153
+ | onDisappear? | `CommonEventFunction \| undefined` | 当前元素不可见面积超过50%时触发。 |
154
+ | onFirstAppear? | `CommonEventFunction \| undefined` | 当前元素首次可见面积达到50%时触发。 |
155
+ | catchMove? | `boolean \| undefined` | 是否以 catch 的形式绑定 touchmove 事件 |
156
+ | id? | `string \| undefined` | 组件的唯一标示, 保持整个页面唯一 |
157
+ | className? | `string \| undefined` | 同 `class`,在 React/Preact 里一般使用 `className` 作为 `class` 的代称 |
158
+ | style? | `string \| React.CSSProperties \| undefined` | 组件的内联样式, 可以动态设置的内联样式 |
159
+ | children? | `React.ReactNode` | 子节点 |
160
+ | key? | `string \| number \| undefined` | 如果列表中项目的位置会动态改变或者有新的项目添加到列表中, 需要使用 `wx:key` 来指定列表中项目的唯一的标识符。 |
161
+ | ref? | `React.LegacyRef<any> \| undefined` | 引用 |
162
+ | dangerouslySetInnerHTML? | `{ __html: string; } \| undefined` | 渲染 HTML |
163
+ | compileMode? | `string \| boolean \| undefined` | 是否开启编译模式 或者 是否是编译模式的子渲染函数 |
164
+ | harmonyDirection? | `"row" \| "column" \| "flex" \| undefined` | 自定义容器组件的方向 |
165
+ | onClick? | `((event: ITouchEvent) => void) \| undefined` | 手指触摸后马上离开 |
166
+ | onLongPress? | `((event: CommonEvent) => void) \| undefined` | 手指触摸后,超过350ms再离开,如果指定了事件回调函数并触发了这个事件,tap事件将不被触发 |
167
+ | onLongClick? | `((event: CommonEvent) => void) \| undefined` | 手指触摸后,超过350ms再离开(推荐使用 longpress 事件代替) |
168
+ | onTouchForceChange? | `((event: CommonEvent) => void) \| undefined` | 在支持 3D Touch 的 iPhone 设备,重按时会触发 |
169
+ | onError? | `CommonEventFunction \| undefined` | 当使用开放能力时,发生错误的回调 生效时机:`open-type="launchApp"` |
170
+ | plain? | `boolean \| undefined` | 按钮是否镂空,背景色透明 |
171
+ | loading? | `boolean \| undefined` | 名称前是否带 loading 图标 |
172
+ | formType? | `keyof ButtonProps.FormType \| undefined` | 用于 `<form/>` 组件,点击分别会触发 `<form/>` 组件的 submit/reset 事件 |
173
+ | lang? | `keyof ButtonProps.Lang \| undefined` | 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。 生效时机: `open-type="getUserInfo"` |
174
+ | sessionFrom? | `string \| undefined` | 会话来源 生效时机:`open-type="contact"` |
175
+ | sendMessageTitle? | `string \| undefined` | 会话内消息卡片标题 生效时机:`open-type="contact"` |
176
+ | sendMessagePath? | `string \| undefined` | 会话内消息卡片点击跳转小程序路径 生效时机:`open-type="contact"` |
177
+ | sendMessageImg? | `string \| undefined` | 会话内消息卡片图片 生效时机:`open-type="contact"` |
178
+ | appParameter? | `string \| undefined` | 打开 APP 时,向 APP 传递的参数 生效时机:`open-type="launchApp"` |
179
+ | scope? | `"userInfo" \| "phoneNumber" \| undefined` | 支付宝小程序 scope 生效时机:`open-type="getAuthorize"` |
180
+ | showMessageCard? | `boolean \| undefined` | 显示会话内消息卡片 生效时机:`open-type="contact"` |
181
+ | publicId? | `string \| undefined` | 生活号 id,必须是当前小程序同主体且已关联的生活号,open-type="lifestyle" 时有效。 |
182
+ | templateId? | `string \| string[] \| undefined` | 发送订阅类模板消息所用的模板库标题 ID ,可通过 getTemplateLibraryList 获取 当参数类型为 Array 时,可传递 1~3 个模板库标题 ID |
183
+ | subscribeId? | `string \| undefined` | 发送订阅类模板消息时所使用的唯一标识符,内容由开发者自定义,用来标识订阅场景 注意:同一用户在同一 subscribe-id 下的多次授权不累积下发权限,只能下发一条。若要订阅多条,需要不同 subscribe-id |
184
+ | groupId? | `string \| undefined` | 群聊 id |
185
+ | guildId? | `string \| undefined` | 打开频道页面时,传递的频道号 |
186
+ | shareType? | `string \| undefined` | 分享类型集合,请参考下面share-type有效值说明。share-type后续将不再维护,请更新为share-mode |
187
+ | shareMode? | `string \| undefined` | 分享类型集合,请参考下面share-mode有效值说明 |
188
+ | openId? | `string \| undefined` | 添加好友时,对方的 openid |
189
+ | shareMessageFriendInfo? | `string \| undefined` | 发送对象的 FriendInfo |
190
+ | shareMessageTitle? | `string \| undefined` | 转发标题,不传则默认使用当前小程序的昵称。 FriendInfo |
191
+ | shareMessageImg? | `string \| undefined` | 转发显示图片的链接,可以是网络图片路径(仅 QQ CDN 域名路径)或本地图片文件路径或相对代码包根目录的图片文件路径。显示图片长宽比是 5:4FriendInfo |
192
+ | dataAwemeId? | `string \| undefined` | 跳转抖音号个人页,只支持小程序绑定的品牌号、员工号、合作号 |
193
+ | dataIsHalfPage? | `boolean \| undefined` | 是否开启半屏模式 |
194
+ | onGetUserInfo? | `CommonEventFunction<ButtonProps.onGetUserInfoEventDetail> \| undefined` | 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与 Taro.getUserInfo 返回的一致 生效时机: `open-type="getUserInfo"` |
195
+ | onGetAuthorize? | `CommonEventFunction \| undefined` | 支付宝获取会员基础信息授权回调 生效时机:`open-type="getAuthorize"` |
196
+ | onContact? | `CommonEventFunction<ButtonProps.onContactEventDetail> \| undefined` | 客服消息回调 生效时机:`open-type="contact"` |
197
+ | onGetPhoneNumber? | `CommonEventFunction<ButtonProps.onGetPhoneNumberEventDetail> \| undefined` | 获取用户手机号回调 生效时机:`open-type="getPhoneNumber"` |
198
+ | onGetPhoneNumberAndRiskLevel? | `CommonEventFunction<ButtonProps.onGetPhoneNumberAndRiskLevelEventDetail> \| undefined` | 获取手机号和风险等级的回调 生效时机:`open-type="getPhoneNumberAndRiskLevel"` |
199
+ | onGetRealTimePhoneNumber? | `CommonEventFunction<ButtonProps.onGetRealTimePhoneNumberEventDetail> \| undefined` | 手机号实时验证回调,`open-type="getRealtimePhoneNumber"` 时有效 |
200
+ | onOpenSetting? | `CommonEventFunction<ButtonProps.onOpenSettingEventDetail> \| undefined` | 在打开授权设置页后回调 生效时机:`open-type="openSetting"` |
201
+ | onLaunchApp? | `CommonEventFunction \| undefined` | 打开 APP 成功的回调 生效时机:`open-type="launchApp"` |
202
+ | onChooseAvatar? | `CommonEventFunction \| undefined` | 获取用户头像回调 生效时机:`open-type="chooseAvatar"` |
203
+ | onAgreePrivacyAuthorization? | `CommonEventFunction \| undefined` | 用户同意隐私协议事件回调,`open-type="agreePrivacyAuthorization"`时有效 |
204
+ | onFollowLifestyle? | `CommonEventFunction<{ followStatus: 1 \| 2 \| 3 \| true; }> \| undefined` | 当 open-type 为 lifestyle 时有效。 当点击按钮时触发。 event.detail = { followStatus },followStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误; 已知问题:基础库 1.0,当用户在点击按钮前已关注生活号,event.detail.followStatus 的值为 true。 |
205
+ | onChooseAddress? | `CommonEventFunction \| undefined` | 用户点击该按钮时,调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址,从返回参数的 detail 中获取,和 swan.chooseAddress 一样的。和 open-type 搭配使用,使用时机:open-type="chooseAddress" |
206
+ | onChooseInvoiceTitle? | `CommonEventFunction \| undefined` | 用户点击该按钮时,选择用户的发票抬头,和 swan.chooseInvoiceTitle 一样的。和 open-type 搭配使用,使用时机:open-type="chooseInvoiceTitle" |
207
+ | onLogin? | `CommonEventFunction \| undefined` | 登录回调,和 open-type 搭配使用,使用时机:open-type="login"。可以通过返回参数的 detail 判断是否登录成功,当 errMsg 为'login:ok'时即为成功。如想获取登录凭证请使用 swan.getLoginCode |
208
+ | onSubscribe? | `CommonEventFunction \| undefined` | 订阅消息授权回调,和 open-type 搭配使用,使用时机:open-type="subscribe" |
209
+ | onAddFriend? | `CommonEventFunction \| undefined` | 添加好友的回调 |
210
+ | onAddGroupApp? | `CommonEventFunction \| undefined` | 添加群应用的回调。errCode 错误码:41004(当前用户非管理员或群主,无权操作),41005(超过可添加群应用的群数量) |
211
+ | onOpenAwemeUserProfile? | `CommonEventFunction \| undefined` | 监听跳转抖音号个人页的回调 生效时机:`open-type="openAwemeUserProfile"` |
212
+ | onJoinGroup? | `CommonEventFunction<{ errMsg: string; errNo: number; }> \| undefined` | 加群后触发 |
213
+ | hideBorder? | `boolean \| undefined` | |
214
+
215
+ </details>
216
+
217
+ #### 返回值
218
+
219
+ - 类型:`React.JSX.Element`
@@ -0,0 +1,219 @@
1
+ # CarouselPrevious
2
+
3
+ <!-- Generated by build/src/sdk-reference/skill-reference.ts. Do not edit. -->
4
+
5
+ 导入路径:`@open-dy/vibecoding-sdk-taro/ui/carousel`
6
+ 源码:实际安装的 `@open-dy/vibecoding-sdk-taro` 包内 `src/ui/carousel.tsx`(仅补缺或排错时读取)。
7
+
8
+ #### 说明
9
+
10
+ 轮播上一项按钮。
11
+
12
+ 参数:
13
+
14
+ | 名称 | 说明 |
15
+ | --- | --- |
16
+ | `props` | 组件属性;自有字段的用途及默认行为见下表,继承属性另列。 |
17
+
18
+ 返回:组件渲染结果;类型见返回值契约。
19
+
20
+ 示例:
21
+
22
+ ```tsx
23
+ import { Carousel, CarouselPrevious } from '@open-dy/vibecoding-sdk-taro/ui/carousel'
24
+ <Carousel><CarouselPrevious /></Carousel>
25
+ ```
26
+
27
+ #### AI 使用约束
28
+
29
+ | 规则 | 内容 |
30
+ | --- | --- |
31
+ | 意图 | 普通小程序或兴趣卡落地页:轮播上一项按钮。 |
32
+ | 适用时机 | 普通小程序或兴趣卡落地页需要该 UI 模块时,按模块示例组合使用。 |
33
+ | 避免 | 不要用于 Feed OpenCard。属性与组合方式以本页类型和示例为准。 |
34
+
35
+ #### 声明
36
+
37
+ ```ts
38
+ declare function CarouselPrevious(props: ViewProps & VariantProps<(props?: (ConfigVariants<{ variant: { default: string; outline: string; secondary: string; ghost: string; destructive: string; link: string; }; size: { default: string; xs: string; sm: string; lg: string; icon: string; "icon-xs": string; "icon-sm": string; "icon-lg": string; }; }> & ClassProp) | undefined) => string> & Omit<ButtonProps, TaroButtonNativeKeys> & DouyinButtonExtras & { disabled?: boolean; }): React.JSX.Element;
39
+ ```
40
+
41
+ #### 参数
42
+
43
+ - `props`
44
+
45
+ ```ts
46
+ ViewProps & VariantProps<(props?: (ConfigVariants<{ variant: { default: string;
47
+ outline: string;
48
+ secondary: string;
49
+ ghost: string;
50
+ destructive: string;
51
+ link: string; };
52
+ size: { default: string;
53
+ xs: string;
54
+ sm: string;
55
+ lg: string;
56
+ icon: string; "icon-xs": string; "icon-sm": string; "icon-lg": string; }; }> & ClassProp) | undefined) => string> & Omit<ButtonProps, TaroButtonNativeKeys> & DouyinButtonExtras & { disabled?: boolean; }
57
+ ```
58
+ 说明:组件属性;自有字段的用途及默认行为见下表,继承属性另列。
59
+
60
+ ##### props 组件属性
61
+
62
+ | 字段 | 类型 | 说明 |
63
+ | --- | --- | --- |
64
+ | variant? | `"default" \| "link" \| "outline" \| "secondary" \| "ghost" \| "destructive" \| null \| undefined` | 按钮外观,默认 outline;其余变体同 Button.variant。 |
65
+ | size? | `"default" \| "xs" \| "sm" \| "lg" \| "icon" \| "icon-xs" \| "icon-sm" \| "icon-lg" \| null \| undefined` | 按钮尺寸,默认 icon-sm(size-7);可按 Button.size 选择其他尺寸。 |
66
+ | disabled? | `boolean \| undefined` | 沿用 Button 的原生属性;普通 View 分支不保证阻止点击。边界状态由轮播组件自身的 canScrollPrev/canScrollNext 样式控制。 |
67
+ | dataVideoId? | `string \| undefined` | navigateToVideoView 的视频标识;优先于 data-video-id,同时注入两种拼写给原生按钮。其他 openType 仅透传。 |
68
+ | dataVideoType? | `string \| undefined` | 视频类型;优先于 data-video-type。navigateToVideoView 场景省略时为 "raw",其他场景不设置默认值。 |
69
+ | dataChannel? | `string \| undefined` | 原生视频能力的渠道参数;优先于 data-channel,未提供时不注入。不控制 SDK 网络通道。 |
70
+ | data-video-id? | `string \| undefined` | dataVideoId 的兼容写法;两者都提供时以 dataVideoId 为准。 |
71
+ | data-video-type? | `string \| undefined` | dataVideoType 的兼容写法;两者都提供时以 dataVideoType 为准。 |
72
+ | data-channel? | `string \| undefined` | dataChannel 的兼容写法;两者都提供时以 dataChannel 为准。 |
73
+ | onNavigateToVideoView? | `(((event: DouyinOpenTypeDetailEvent) => void) & ((event: OpenTypeDetailEvent) => void)) \| undefined` | 仅在原生 navigateToVideoView 能力分支中透传的结果回调;event.detail 可缺省,不代表业务点击回调。 |
74
+ | onAddShortcut? | `(((event: DouyinOpenTypeDetailEvent) => void) & ((event: OpenTypeDetailEvent) => void)) \| undefined` | 仅在原生 addShortcut 能力分支中透传的结果回调;结果从 event.detail 读取,普通 View 按钮不会主动调用。 |
75
+
76
+ - `openType?`
77
+
78
+ ```ts
79
+ "contact" | "share" | "getPhoneNumber" | "getRealtimePhoneNumber" | "getUserInfo" | "launchApp" | "openSetting" | "feedback" | "chooseAvatar" | "agreePrivacyAuthorization" | "getPhoneNumber|agreePrivacyAuthorization" | "getRealtimePhoneNumber|agreePrivacyAuthorization" | "getUserInfo|agreePrivacyAuthorization" | "getAuthorize" | "contactShare" | "lifestyle" | "openGroupProfile" | "addFriend" | "addColorSign" | "openPublicProfile" | "addGroupApp" | "shareMessageToFriend" | "im" | "platformIm" | "navigateToVideoView" | "openAwemeUserProfile" | "openWebcastRoom" | "addCalendarEvent" | "addShortcut" | "joinGroup" | "privateMessage" | "authorizePrivateMessage" | "liveActivity" | "getPhoneNumberAndRiskLevel" | undefined
80
+ ```
81
+ 说明:抖音原生按钮能力类型;非空时改用 Taro Button 并透传该值,否则渲染 View。可用值和授权要求以目标平台能力为准。
82
+
83
+ ###### onNavigateToVideoView 回调参数
84
+
85
+ | 字段 | 类型 | 说明 |
86
+ | --- | --- | --- |
87
+ | event | `OpenTypeDetailEvent` | |
88
+
89
+ ###### onNavigateToVideoView.event 子字段
90
+
91
+ | 字段 | 类型 | 说明 |
92
+ | --- | --- | --- |
93
+ | detail? | `{ errMsg?: string; errNo?: number; } \| undefined` | 原生能力回调的结果明细;平台未提供时可缺省,使用前需判空。 |
94
+
95
+ ###### onNavigateToVideoView.event.detail 子字段
96
+
97
+ | 字段 | 类型 | 说明 |
98
+ | --- | --- | --- |
99
+ | errMsg? | `string \| undefined` | 平台提供的结果或错误描述;可缺省,请保留原文用于判断和诊断。 |
100
+ | errNo? | `number \| undefined` | 平台提供的数值结果码;可缺省,含义以所用原生能力的契约为准。 |
101
+
102
+ ###### onAddShortcut 回调参数
103
+
104
+ | 字段 | 类型 | 说明 |
105
+ | --- | --- | --- |
106
+ | event | `OpenTypeDetailEvent` | |
107
+
108
+ ###### onAddShortcut.event 子字段
109
+
110
+ | 字段 | 类型 | 说明 |
111
+ | --- | --- | --- |
112
+ | detail? | `{ errMsg?: string; errNo?: number; } \| undefined` | 原生能力回调的结果明细;平台未提供时可缺省,使用前需判空。 |
113
+
114
+ ###### onAddShortcut.event.detail 子字段
115
+
116
+ | 字段 | 类型 | 说明 |
117
+ | --- | --- | --- |
118
+ | errMsg? | `string \| undefined` | 平台提供的结果或错误描述;可缺省,请保留原文用于判断和诊断。 |
119
+ | errNo? | `number \| undefined` | 平台提供的数值结果码;可缺省,含义以所用原生能力的契约为准。 |
120
+
121
+ <details>
122
+
123
+ <summary>继承的 Taro / React 属性</summary>
124
+
125
+ 以下字段沿用上游类型;组件有特殊处理时,以本页组件属性说明为准。
126
+
127
+ ##### 继承属性
128
+
129
+ | 字段 | 类型 | 说明 |
130
+ | --- | --- | --- |
131
+ | hoverClass? | `string \| undefined` | 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果 |
132
+ | hoverStyle? | `any` | 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。 |
133
+ | hoverStopPropagation? | `boolean \| undefined` | 指定是否阻止本节点的祖先节点出现点击态 |
134
+ | hoverStartTime? | `number \| undefined` | 按住后多久出现点击态,单位毫秒 |
135
+ | hoverStayTime? | `number \| undefined` | 手指松开后点击态保留时间,单位毫秒 |
136
+ | disableScroll? | `boolean \| undefined` | 是否阻止区域内滚动页面。 说明: 如果 view 中嵌套 view,外层 view 设置 disable-scroll 为 true 时禁止内部的滚动。 |
137
+ | hidden? | `boolean \| undefined` | 是否隐藏。 |
138
+ | animation? | `TaroGeneral.IAnyObject \| undefined` | 用于动画,详见 my.createAnimation 。使用 my.createAnimation 生成的动画是通过过渡(Transition)实现的,只会触发 onTransitionEnd,不会触发 onAnimationStart, onAnimationIteration, onAnimationEnd。 |
139
+ | role? | `string \| undefined` | 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。 |
140
+ | ariaRole? | `string \| undefined` | 无障碍访问,(角色)标识元素的作用 |
141
+ | ariaLabel? | `string \| undefined` | 无障碍访问,(属性)元素的额外描述 |
142
+ | onTap? | `CommonEventFunction \| undefined` | 点击。 |
143
+ | onTouchStart? | `CommonEventFunction \| undefined` | 触摸动作开始。 |
144
+ | onTouchMove? | `CommonEventFunction \| undefined` | 触摸后移动。 |
145
+ | onTouchEnd? | `CommonEventFunction \| undefined` | 触摸动作结束。 |
146
+ | onTouchCancel? | `CommonEventFunction \| undefined` | 触摸动作被打断,如来电提醒,弹窗。 |
147
+ | onLongTap? | `CommonEventFunction \| undefined` | 长按 500ms 之后触发,触发了长按事件后进行移动将不会触发屏幕的滚动。 |
148
+ | onTransitionEnd? | `CommonEventFunction \| undefined` | 过渡(Transition)结束时触发。 |
149
+ | onAnimationIteration? | `CommonEventFunction \| undefined` | 每开启一次新的动画过程时触发。(第一次不触发) |
150
+ | onAnimationStart? | `CommonEventFunction \| undefined` | 动画开始时触发。 |
151
+ | onAnimationEnd? | `CommonEventFunction \| undefined` | 动画结束时触发。 |
152
+ | onAppear? | `CommonEventFunction \| undefined` | 当前元素可见面积超过50%时触发。 |
153
+ | onDisappear? | `CommonEventFunction \| undefined` | 当前元素不可见面积超过50%时触发。 |
154
+ | onFirstAppear? | `CommonEventFunction \| undefined` | 当前元素首次可见面积达到50%时触发。 |
155
+ | catchMove? | `boolean \| undefined` | 是否以 catch 的形式绑定 touchmove 事件 |
156
+ | id? | `string \| undefined` | 组件的唯一标示, 保持整个页面唯一 |
157
+ | className? | `string \| undefined` | 同 `class`,在 React/Preact 里一般使用 `className` 作为 `class` 的代称 |
158
+ | style? | `string \| React.CSSProperties \| undefined` | 组件的内联样式, 可以动态设置的内联样式 |
159
+ | children? | `React.ReactNode` | 子节点 |
160
+ | key? | `string \| number \| undefined` | 如果列表中项目的位置会动态改变或者有新的项目添加到列表中, 需要使用 `wx:key` 来指定列表中项目的唯一的标识符。 |
161
+ | ref? | `React.LegacyRef<any> \| undefined` | 引用 |
162
+ | dangerouslySetInnerHTML? | `{ __html: string; } \| undefined` | 渲染 HTML |
163
+ | compileMode? | `string \| boolean \| undefined` | 是否开启编译模式 或者 是否是编译模式的子渲染函数 |
164
+ | harmonyDirection? | `"row" \| "column" \| "flex" \| undefined` | 自定义容器组件的方向 |
165
+ | onClick? | `((event: ITouchEvent) => void) \| undefined` | 手指触摸后马上离开 |
166
+ | onLongPress? | `((event: CommonEvent) => void) \| undefined` | 手指触摸后,超过350ms再离开,如果指定了事件回调函数并触发了这个事件,tap事件将不被触发 |
167
+ | onLongClick? | `((event: CommonEvent) => void) \| undefined` | 手指触摸后,超过350ms再离开(推荐使用 longpress 事件代替) |
168
+ | onTouchForceChange? | `((event: CommonEvent) => void) \| undefined` | 在支持 3D Touch 的 iPhone 设备,重按时会触发 |
169
+ | onError? | `CommonEventFunction \| undefined` | 当使用开放能力时,发生错误的回调 生效时机:`open-type="launchApp"` |
170
+ | plain? | `boolean \| undefined` | 按钮是否镂空,背景色透明 |
171
+ | loading? | `boolean \| undefined` | 名称前是否带 loading 图标 |
172
+ | formType? | `keyof ButtonProps.FormType \| undefined` | 用于 `<form/>` 组件,点击分别会触发 `<form/>` 组件的 submit/reset 事件 |
173
+ | lang? | `keyof ButtonProps.Lang \| undefined` | 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。 生效时机: `open-type="getUserInfo"` |
174
+ | sessionFrom? | `string \| undefined` | 会话来源 生效时机:`open-type="contact"` |
175
+ | sendMessageTitle? | `string \| undefined` | 会话内消息卡片标题 生效时机:`open-type="contact"` |
176
+ | sendMessagePath? | `string \| undefined` | 会话内消息卡片点击跳转小程序路径 生效时机:`open-type="contact"` |
177
+ | sendMessageImg? | `string \| undefined` | 会话内消息卡片图片 生效时机:`open-type="contact"` |
178
+ | appParameter? | `string \| undefined` | 打开 APP 时,向 APP 传递的参数 生效时机:`open-type="launchApp"` |
179
+ | scope? | `"userInfo" \| "phoneNumber" \| undefined` | 支付宝小程序 scope 生效时机:`open-type="getAuthorize"` |
180
+ | showMessageCard? | `boolean \| undefined` | 显示会话内消息卡片 生效时机:`open-type="contact"` |
181
+ | publicId? | `string \| undefined` | 生活号 id,必须是当前小程序同主体且已关联的生活号,open-type="lifestyle" 时有效。 |
182
+ | templateId? | `string \| string[] \| undefined` | 发送订阅类模板消息所用的模板库标题 ID ,可通过 getTemplateLibraryList 获取 当参数类型为 Array 时,可传递 1~3 个模板库标题 ID |
183
+ | subscribeId? | `string \| undefined` | 发送订阅类模板消息时所使用的唯一标识符,内容由开发者自定义,用来标识订阅场景 注意:同一用户在同一 subscribe-id 下的多次授权不累积下发权限,只能下发一条。若要订阅多条,需要不同 subscribe-id |
184
+ | groupId? | `string \| undefined` | 群聊 id |
185
+ | guildId? | `string \| undefined` | 打开频道页面时,传递的频道号 |
186
+ | shareType? | `string \| undefined` | 分享类型集合,请参考下面share-type有效值说明。share-type后续将不再维护,请更新为share-mode |
187
+ | shareMode? | `string \| undefined` | 分享类型集合,请参考下面share-mode有效值说明 |
188
+ | openId? | `string \| undefined` | 添加好友时,对方的 openid |
189
+ | shareMessageFriendInfo? | `string \| undefined` | 发送对象的 FriendInfo |
190
+ | shareMessageTitle? | `string \| undefined` | 转发标题,不传则默认使用当前小程序的昵称。 FriendInfo |
191
+ | shareMessageImg? | `string \| undefined` | 转发显示图片的链接,可以是网络图片路径(仅 QQ CDN 域名路径)或本地图片文件路径或相对代码包根目录的图片文件路径。显示图片长宽比是 5:4FriendInfo |
192
+ | dataAwemeId? | `string \| undefined` | 跳转抖音号个人页,只支持小程序绑定的品牌号、员工号、合作号 |
193
+ | dataIsHalfPage? | `boolean \| undefined` | 是否开启半屏模式 |
194
+ | onGetUserInfo? | `CommonEventFunction<ButtonProps.onGetUserInfoEventDetail> \| undefined` | 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与 Taro.getUserInfo 返回的一致 生效时机: `open-type="getUserInfo"` |
195
+ | onGetAuthorize? | `CommonEventFunction \| undefined` | 支付宝获取会员基础信息授权回调 生效时机:`open-type="getAuthorize"` |
196
+ | onContact? | `CommonEventFunction<ButtonProps.onContactEventDetail> \| undefined` | 客服消息回调 生效时机:`open-type="contact"` |
197
+ | onGetPhoneNumber? | `CommonEventFunction<ButtonProps.onGetPhoneNumberEventDetail> \| undefined` | 获取用户手机号回调 生效时机:`open-type="getPhoneNumber"` |
198
+ | onGetPhoneNumberAndRiskLevel? | `CommonEventFunction<ButtonProps.onGetPhoneNumberAndRiskLevelEventDetail> \| undefined` | 获取手机号和风险等级的回调 生效时机:`open-type="getPhoneNumberAndRiskLevel"` |
199
+ | onGetRealTimePhoneNumber? | `CommonEventFunction<ButtonProps.onGetRealTimePhoneNumberEventDetail> \| undefined` | 手机号实时验证回调,`open-type="getRealtimePhoneNumber"` 时有效 |
200
+ | onOpenSetting? | `CommonEventFunction<ButtonProps.onOpenSettingEventDetail> \| undefined` | 在打开授权设置页后回调 生效时机:`open-type="openSetting"` |
201
+ | onLaunchApp? | `CommonEventFunction \| undefined` | 打开 APP 成功的回调 生效时机:`open-type="launchApp"` |
202
+ | onChooseAvatar? | `CommonEventFunction \| undefined` | 获取用户头像回调 生效时机:`open-type="chooseAvatar"` |
203
+ | onAgreePrivacyAuthorization? | `CommonEventFunction \| undefined` | 用户同意隐私协议事件回调,`open-type="agreePrivacyAuthorization"`时有效 |
204
+ | onFollowLifestyle? | `CommonEventFunction<{ followStatus: 1 \| 2 \| 3 \| true; }> \| undefined` | 当 open-type 为 lifestyle 时有效。 当点击按钮时触发。 event.detail = { followStatus },followStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误; 已知问题:基础库 1.0,当用户在点击按钮前已关注生活号,event.detail.followStatus 的值为 true。 |
205
+ | onChooseAddress? | `CommonEventFunction \| undefined` | 用户点击该按钮时,调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址,从返回参数的 detail 中获取,和 swan.chooseAddress 一样的。和 open-type 搭配使用,使用时机:open-type="chooseAddress" |
206
+ | onChooseInvoiceTitle? | `CommonEventFunction \| undefined` | 用户点击该按钮时,选择用户的发票抬头,和 swan.chooseInvoiceTitle 一样的。和 open-type 搭配使用,使用时机:open-type="chooseInvoiceTitle" |
207
+ | onLogin? | `CommonEventFunction \| undefined` | 登录回调,和 open-type 搭配使用,使用时机:open-type="login"。可以通过返回参数的 detail 判断是否登录成功,当 errMsg 为'login:ok'时即为成功。如想获取登录凭证请使用 swan.getLoginCode |
208
+ | onSubscribe? | `CommonEventFunction \| undefined` | 订阅消息授权回调,和 open-type 搭配使用,使用时机:open-type="subscribe" |
209
+ | onAddFriend? | `CommonEventFunction \| undefined` | 添加好友的回调 |
210
+ | onAddGroupApp? | `CommonEventFunction \| undefined` | 添加群应用的回调。errCode 错误码:41004(当前用户非管理员或群主,无权操作),41005(超过可添加群应用的群数量) |
211
+ | onOpenAwemeUserProfile? | `CommonEventFunction \| undefined` | 监听跳转抖音号个人页的回调 生效时机:`open-type="openAwemeUserProfile"` |
212
+ | onJoinGroup? | `CommonEventFunction<{ errMsg: string; errNo: number; }> \| undefined` | 加群后触发 |
213
+ | hideBorder? | `boolean \| undefined` | |
214
+
215
+ </details>
216
+
217
+ #### 返回值
218
+
219
+ - 类型:`React.JSX.Element`
@@ -0,0 +1,14 @@
1
+ # ui/carousel
2
+
3
+ <!-- Generated by build/src/sdk-reference/skill-reference.ts. Do not edit. -->
4
+
5
+ 导入路径前缀:`@open-dy/vibecoding-sdk-taro/ui/carousel`
6
+
7
+ | API | 说明 | 文档 |
8
+ | --- | --- | --- |
9
+ | `Carousel` | 轮播组件。 | [查看](./Carousel.md) |
10
+ | `CarouselContent` | 轮播内容容器。 | [查看](./CarouselContent.md) |
11
+ | `CarouselItem` | 轮播条目。 | [查看](./CarouselItem.md) |
12
+ | `CarouselNext` | 轮播下一项按钮。 | [查看](./CarouselNext.md) |
13
+ | `CarouselPrevious` | 轮播上一项按钮。 | [查看](./CarouselPrevious.md) |
14
+ | `useCarousel` | 读取最近的 Carousel 上下文,包括当前位置、总数和前后翻页方法。 | [查看](./useCarousel.md) |
@@ -0,0 +1,46 @@
1
+ # useCarousel
2
+
3
+ <!-- Generated by build/src/sdk-reference/skill-reference.ts. Do not edit. -->
4
+
5
+ 导入路径:`@open-dy/vibecoding-sdk-taro/ui/carousel`
6
+ 源码:实际安装的 `@open-dy/vibecoding-sdk-taro` 包内 `src/ui/carousel.tsx`(仅补缺或排错时读取)。
7
+
8
+ #### 说明
9
+
10
+ 读取最近的 Carousel 上下文,包括当前位置、总数和前后翻页方法。
11
+
12
+ 参数:
13
+
14
+ | 名称 | 说明 |
15
+ | --- | --- |
16
+ | `无参数` | — |
17
+
18
+ 返回:当前上下文或锚点引用。
19
+
20
+ 备注:必须在 Carousel 的后代组件中调用;缺少上下文时会抛错。
21
+
22
+ 示例:
23
+
24
+ ```tsx
25
+ import { useCarousel, CarouselNext } from '@open-dy/vibecoding-sdk-taro/ui/carousel'
26
+ function Controls() { const carousel = useCarousel(); return <CarouselNext disabled={!carousel.canScrollNext} /> }
27
+ // Controls 必须渲染在 Carousel 内。
28
+ ```
29
+
30
+ #### AI 使用约束
31
+
32
+ | 规则 | 内容 |
33
+ | --- | --- |
34
+ | 意图 | 普通小程序或兴趣卡落地页:读取最近的 Carousel 上下文,包括当前位置、总数和前后翻页方法。 |
35
+ | 适用时机 | 普通小程序或兴趣卡落地页需要该 UI 模块时,按模块示例组合使用。 |
36
+ | 避免 | 不要用于 Feed OpenCard。必须在 Carousel 的后代组件中调用;缺少上下文时会抛错。 |
37
+
38
+ #### 声明
39
+
40
+ ```ts
41
+ declare function useCarousel(): CarouselContextProps;
42
+ ```
43
+
44
+ #### 返回值
45
+
46
+ - 类型:`CarouselContextProps`
@@ -0,0 +1,109 @@
1
+ # Checkbox
2
+
3
+ <!-- Generated by build/src/sdk-reference/skill-reference.ts. Do not edit. -->
4
+
5
+ 导入路径:`@open-dy/vibecoding-sdk-taro/ui/checkbox`
6
+ 源码:实际安装的 `@open-dy/vibecoding-sdk-taro` 包内 `src/ui/checkbox.tsx`(仅补缺或排错时读取)。
7
+
8
+ #### 说明
9
+
10
+ 复选框组件。
11
+
12
+ 参数:
13
+
14
+ | 名称 | 说明 |
15
+ | --- | --- |
16
+ | `props` | 组件属性;自有字段的用途及默认行为见下表,继承属性另列。 |
17
+
18
+ 返回:组件渲染结果;类型见返回值契约。
19
+
20
+ 示例:
21
+
22
+ ```tsx
23
+ import { Checkbox } from '@open-dy/vibecoding-sdk-taro/ui/checkbox'
24
+ <Checkbox />
25
+ ```
26
+
27
+ #### AI 使用约束
28
+
29
+ | 规则 | 内容 |
30
+ | --- | --- |
31
+ | 意图 | 普通小程序或兴趣卡落地页:复选框组件。 |
32
+ | 适用时机 | 普通小程序或兴趣卡落地页需要该 UI 模块时,按模块示例组合使用。 |
33
+ | 避免 | 不要用于 Feed OpenCard。属性与组合方式以本页类型和示例为准。 |
34
+
35
+ #### 声明
36
+
37
+ ```ts
38
+ declare function Checkbox(props: ViewProps & { checked?: boolean; defaultChecked?: boolean; onCheckedChange?: (checked: boolean) => void; disabled?: boolean; }): React.JSX.Element;
39
+ ```
40
+
41
+ #### 参数
42
+
43
+ | 参数 | 类型 | 说明 |
44
+ | --- | --- | --- |
45
+ | props | `ViewProps & { checked?: boolean; defaultChecked?: boolean; onCheckedChange?: (checked: boolean) => void; disabled?: boolean; }` | 组件属性;自有字段的用途及默认行为见下表,继承属性另列。 |
46
+
47
+ ##### props 组件属性
48
+
49
+ | 字段 | 类型 | 说明 |
50
+ | --- | --- | --- |
51
+ | checked? | `boolean \| undefined` | 受控选中状态;传入后以该值为准,需在 onCheckedChange 中更新。省略时由内部状态管理。 |
52
+ | defaultChecked? | `boolean \| undefined` | 非受控模式的初始选中状态,默认 false;仅初始化时读取,传入 checked 后不生效。 |
53
+ | onCheckedChange? | `((checked: boolean) => void) \| undefined` | 用户点击切换时调用,参数为下一选中状态;禁用时不触发,受控模式需同步 checked。 |
54
+ | disabled? | `boolean \| undefined` | 是否禁止用户切换;省略或 false 时可操作,true 时不触发内部切换回调。 |
55
+
56
+ <details>
57
+
58
+ <summary>继承的 Taro / React 属性</summary>
59
+
60
+ 以下字段沿用上游类型;组件有特殊处理时,以本页组件属性说明为准。
61
+
62
+ ##### 继承属性
63
+
64
+ | 字段 | 类型 | 说明 |
65
+ | --- | --- | --- |
66
+ | hoverClass? | `string \| undefined` | 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果 |
67
+ | hoverStyle? | `any` | 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。 |
68
+ | hoverStopPropagation? | `boolean \| undefined` | 指定是否阻止本节点的祖先节点出现点击态 |
69
+ | hoverStartTime? | `number \| undefined` | 按住后多久出现点击态,单位毫秒 |
70
+ | hoverStayTime? | `number \| undefined` | 手指松开后点击态保留时间,单位毫秒 |
71
+ | disableScroll? | `boolean \| undefined` | 是否阻止区域内滚动页面。 说明: 如果 view 中嵌套 view,外层 view 设置 disable-scroll 为 true 时禁止内部的滚动。 |
72
+ | hidden? | `boolean \| undefined` | 是否隐藏。 |
73
+ | animation? | `TaroGeneral.IAnyObject \| undefined` | 用于动画,详见 my.createAnimation 。使用 my.createAnimation 生成的动画是通过过渡(Transition)实现的,只会触发 onTransitionEnd,不会触发 onAnimationStart, onAnimationIteration, onAnimationEnd。 |
74
+ | role? | `string \| undefined` | 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。 |
75
+ | ariaRole? | `string \| undefined` | 无障碍访问,(角色)标识元素的作用 |
76
+ | ariaLabel? | `string \| undefined` | 无障碍访问,(属性)元素的额外描述 |
77
+ | onTap? | `CommonEventFunction \| undefined` | 点击。 |
78
+ | onTouchStart? | `CommonEventFunction \| undefined` | 触摸动作开始。 |
79
+ | onTouchMove? | `CommonEventFunction \| undefined` | 触摸后移动。 |
80
+ | onTouchEnd? | `CommonEventFunction \| undefined` | 触摸动作结束。 |
81
+ | onTouchCancel? | `CommonEventFunction \| undefined` | 触摸动作被打断,如来电提醒,弹窗。 |
82
+ | onLongTap? | `CommonEventFunction \| undefined` | 长按 500ms 之后触发,触发了长按事件后进行移动将不会触发屏幕的滚动。 |
83
+ | onTransitionEnd? | `CommonEventFunction \| undefined` | 过渡(Transition)结束时触发。 |
84
+ | onAnimationIteration? | `CommonEventFunction \| undefined` | 每开启一次新的动画过程时触发。(第一次不触发) |
85
+ | onAnimationStart? | `CommonEventFunction \| undefined` | 动画开始时触发。 |
86
+ | onAnimationEnd? | `CommonEventFunction \| undefined` | 动画结束时触发。 |
87
+ | onAppear? | `CommonEventFunction \| undefined` | 当前元素可见面积超过50%时触发。 |
88
+ | onDisappear? | `CommonEventFunction \| undefined` | 当前元素不可见面积超过50%时触发。 |
89
+ | onFirstAppear? | `CommonEventFunction \| undefined` | 当前元素首次可见面积达到50%时触发。 |
90
+ | catchMove? | `boolean \| undefined` | 是否以 catch 的形式绑定 touchmove 事件 |
91
+ | id? | `string \| undefined` | 组件的唯一标示, 保持整个页面唯一 |
92
+ | className? | `string \| undefined` | 同 `class`,在 React/Preact 里一般使用 `className` 作为 `class` 的代称 |
93
+ | style? | `string \| React.CSSProperties \| undefined` | 组件的内联样式, 可以动态设置的内联样式 |
94
+ | children? | `React.ReactNode` | 子节点 |
95
+ | key? | `string \| number \| undefined` | 如果列表中项目的位置会动态改变或者有新的项目添加到列表中, 需要使用 `wx:key` 来指定列表中项目的唯一的标识符。 |
96
+ | ref? | `React.LegacyRef<any> \| undefined` | 引用 |
97
+ | dangerouslySetInnerHTML? | `{ __html: string; } \| undefined` | 渲染 HTML |
98
+ | compileMode? | `string \| boolean \| undefined` | 是否开启编译模式 或者 是否是编译模式的子渲染函数 |
99
+ | harmonyDirection? | `"row" \| "column" \| "flex" \| undefined` | 自定义容器组件的方向 |
100
+ | onClick? | `((event: ITouchEvent) => void) \| undefined` | 手指触摸后马上离开 |
101
+ | onLongPress? | `((event: CommonEvent) => void) \| undefined` | 手指触摸后,超过350ms再离开,如果指定了事件回调函数并触发了这个事件,tap事件将不被触发 |
102
+ | onLongClick? | `((event: CommonEvent) => void) \| undefined` | 手指触摸后,超过350ms再离开(推荐使用 longpress 事件代替) |
103
+ | onTouchForceChange? | `((event: CommonEvent) => void) \| undefined` | 在支持 3D Touch 的 iPhone 设备,重按时会触发 |
104
+
105
+ </details>
106
+
107
+ #### 返回值
108
+
109
+ - 类型:`React.JSX.Element`
@@ -0,0 +1,9 @@
1
+ # ui/checkbox
2
+
3
+ <!-- Generated by build/src/sdk-reference/skill-reference.ts. Do not edit. -->
4
+
5
+ 导入路径前缀:`@open-dy/vibecoding-sdk-taro/ui/checkbox`
6
+
7
+ | API | 说明 | 文档 |
8
+ | --- | --- | --- |
9
+ | `Checkbox` | 复选框组件。 | [查看](./Checkbox.md) |