fix: 处理reg.js的缩进问题

This commit is contained in:
wenbo.dong 2017-07-25 16:16:32 +08:00
parent 3e0f978db8
commit ecdb636a53

View File

@ -94,8 +94,11 @@ class Reg extends Component {
{/* Emaiil */}
<FormItem style={formItemStyle}>
{getFieldDecorator('email', {
rules: [{ required: true, message: '请输入email!',
pattern: /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ }]
rules: [{
required: true,
message: '请输入email!',
pattern: /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
}]
})(
<Input style={changeHeight} prefix={<Icon type="user" style={{ fontSize: 13 }} />} placeholder="Email" />
)}