import React from 'react' import { Input, Button } from 'rcm-mobile' import { renderMobile } from 'example/utils/renderHelper' import 'example/index.scss' /** * InputExample 演示案例 * @author sayll * @version 0.0.1 */ export default class Example extends React.PureComponent { state = { inputControlValue: '可setState修改值', validateResult_1: {}, validateResult_2: {}, validateResult_3: {} } refInputFocus: any = React.createRef() refInputControl: any = React.createRef() refInputCheck_1: any = React.createRef() refInputCheck_2: any = React.createRef() refInputCheck_3: any = React.createRef() render() { return (

Input 演示

type 参数

clearable 参数

focus & blur & reset 方法

受控组件

this.setState({ inputControlValue: e.target.value })} />

参数校验

校验结果:{JSON.stringify(this.state.validateResult_1)}

校验结果:{JSON.stringify(this.state.validateResult_2)}

校验结果:{JSON.stringify(this.state.validateResult_3)}

) } } renderMobile(Example)