mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
fix: 处理reg.js的缩进问题
This commit is contained in:
parent
3e0f978db8
commit
ecdb636a53
@ -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" />
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user