mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-30 13:20:24 +08:00
docs: 错别字修正
This commit is contained in:
parent
b9e0abccf0
commit
b67801a458
@ -21,7 +21,7 @@ class AddInterfaceForm extends Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { getFieldDecorator, getFieldsError } = this.props.form;
|
const { getFieldDecorator, getFieldsError } = this.props.form;
|
||||||
@ -35,18 +35,18 @@ class AddInterfaceForm extends Component {
|
|||||||
sm: { span: 14 }
|
sm: { span: 14 }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<Form onSubmit={this.handleSubmit}>
|
<Form onSubmit={this.handleSubmit}>
|
||||||
<FormItem
|
<FormItem
|
||||||
{...formItemLayout}
|
{...formItemLayout}
|
||||||
label="分类名"
|
label="分类名"
|
||||||
>
|
>
|
||||||
{getFieldDecorator('name', {
|
{getFieldDecorator('name', {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true, message: '清输入分类名称!'
|
required: true, message: '请输入分类名称!'
|
||||||
}],
|
}],
|
||||||
initialValue: this.props.catdata? this.props.catdata.name || null: null
|
initialValue: this.props.catdata? this.props.catdata.name || null: null
|
||||||
})(
|
})(
|
||||||
@ -54,7 +54,7 @@ class AddInterfaceForm extends Component {
|
|||||||
)}
|
)}
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
|
|
||||||
<FormItem className="catModalfoot" wrapperCol={{ span: 24, offset: 8 }} >
|
<FormItem className="catModalfoot" wrapperCol={{ span: 24, offset: 8 }} >
|
||||||
<Button onClick={this.props.onCancel} style={{marginRight: "10px"}} >取消</Button>
|
<Button onClick={this.props.onCancel} style={{marginRight: "10px"}} >取消</Button>
|
||||||
<Button
|
<Button
|
||||||
@ -65,7 +65,7 @@ class AddInterfaceForm extends Component {
|
|||||||
提交
|
提交
|
||||||
</Button>
|
</Button>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
</Form>
|
</Form>
|
||||||
|
|
||||||
);
|
);
|
||||||
|
@ -29,7 +29,7 @@ class AddInterfaceForm extends Component {
|
|||||||
this.props.onSubmit(values,()=>{
|
this.props.onSubmit(values,()=>{
|
||||||
this.props.form.resetFields();
|
this.props.form.resetFields();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ class AddInterfaceForm extends Component {
|
|||||||
>
|
>
|
||||||
{getFieldDecorator('path', {
|
{getFieldDecorator('path', {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true, message: '清输入接口路径!'
|
required: true, message: '请输入接口路径!'
|
||||||
}]
|
}]
|
||||||
})(
|
})(
|
||||||
<Input onBlur={this.handlePath} addonBefore={prefixSelector} placeholder="/path" />
|
<Input onBlur={this.handlePath} addonBefore={prefixSelector} placeholder="/path" />
|
||||||
|
Loading…
Reference in New Issue
Block a user