MobileSelect 移动端选择器
业务组件
移动端选择器 — 面向 ERP/企业场景的业务组件。
何时使用
需要移动端选择器功能时使用本组件。
代码示例
基础用法
tsx
import { MobileSelect } from "@/components/business/mobile-select"
export function Basic() {
return <MobileSelect />
}API / Props
MobileSelect
| Prop | Type | Default | 说明 |
|---|---|---|---|
className | string | — | 自定义样式类名 |
options | MobileSelectOption[] | — | 可选项列表 |
value | string | — | 当前值(受控) |
onValueChange | () => void | — | |
placeholder | string | — | 占位文本 |
disabled | boolean | — | 是否禁用 |
| ...rest | React.HTMLAttributes | — | 透传原生 DOM 属性 |
注意事项
- Client Component: 使用
"use client",依赖 React hooks/状态,需在客户端渲染。
📘 完整交互式示例与控件属性请查看 Storybook 文档。