UNPKG

@fruits-chain/react-native-xiaoshu

Version:
47 lines (28 loc) 856 B
--- title: Dropdown 下拉菜单 nav: title: 组件 path: /component group: title: 反馈组件 path: /feedback order: 2 --- # Dropdown 下拉菜单 > 向下弹出的菜单列表。 ## 何时使用 适用于列表顶部、底部筛选条件。 ## 注意 组件嵌套到 `ScrollView` 组件中,iOS 用户点击到了状态栏会触发滚动区域回到顶部,可以通过 `ScrollView` 组件的 `scrollsToTop` 阻止 ## 代码演示 <code src="./__fixtures__/basic.tsx"></code> ## API ### Dropdown <API hideTitle src="./dropdown-menu.tsx"></API> ### Dropdown.Item - `options` 支持树结构 <Badge>0.2.13+</Badge> <API hideTitle src="./dropdown-item.tsx"> ### Dropdown.Text <Badge>0.2.42+</Badge> <API hideTitle src="./dropdown-text.tsx"> ### Dropdown.Popup <Badge>0.2.42+</Badge> <API hideTitle src="./dropdown-popup.tsx">