NumberKeyboard 数字键盘
用于数字的输入,例如输入验证码,支付密码、电话号码、身份证等
示例
import { Header, ScrollView, TopView, GroupList, NumberKeyboard, toast } from '@/duxuiExample'
export default function NumberKeyboardExample() {
return <TopView>
<Header title='NumberKeyboard' />
<ScrollView>
<GroupList>
<GroupList.Item title='默认键盘'>
<NumberKeyboard onKeyPress={toast} />
</GroupList.Item>
<GroupList.Item title='定制按钮'>
<NumberKeyboard
onKeyPress={toast}
keyLeft={{ key: '.' }}
/>
</GroupList.Item>
<GroupList.Item title='随机'>
<NumberKeyboard
onKeyPress={toast}
random
/>
</GroupList.Item>
</GroupList>
</ScrollView>
</TopView>
}
Props
继承自ColumnProps