2 Star 0 Fork 0

mirrors_Meituan-Dianping / beeshell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Input.md 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
wxlworkhard 提交于 2019-06-10 17:45 . MOD: 文档修改
name title route
Input
输入框
/components/Input

Input

输入框组件。

Usage

全部引入

import { Input } from 'beeshell';

按需引入

import { Input } from 'beeshell/dist/components/Input';

Examples

iOS 平台

image

Android 平台支持清空功能

image

Code

详细 Code

import { Input } from 'beeshell';

<Input
  textAlign='right'
  value={''}
  placeholder='请输入地址'
  onChange={(value) => {
    console.log(value)
  }}
/>

API

Props

组合使用 RN TextInput 组件,透传 TextInput 所有属性。

Name Type Required Default Description
style ViewStyle false {} 样式
inputStyle TextStyle false {} 输入框的样式,与 RN TextInput style 属性一致
value string false ''
onChange Function false null 值变化的回调,参数为输入的文本字符串
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_Meituan-Dianping/beeshell.git
git@gitee.com:mirrors_Meituan-Dianping/beeshell.git
mirrors_Meituan-Dianping
beeshell
beeshell
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891