import { useState } from 'react' import { Select, Space, Text } from '../../src' import { Demo } from '../components/Demo' import { PropsTable } from '../components/PropsTable' import { Section } from '../components/Section' const OPTIONS = [ { value: 'new', label: '最近更新' }, { value: 'hot', label: '最热门' }, { value: 'name', label: '按名称' }, { value: 'none', label: '(暂不可用)', disabled: true }, ] export function Selects() { const [sort, setSort] = useState('new') const [kind, setKind] = useState(undefined) return (
`} > `} > void', required: true, desc: '选择回调' }, { name: 'placeholder', type: 'string', defaultValue: "'请选择'", desc: '未选中时的文案' }, { name: 'disabled', type: 'boolean', defaultValue: 'false', desc: '禁用整个控件' }, ]} />
) }