yapi/client/containers/AddInterface/ResParams/ParamsList.js
2017-07-18 12:53:53 +08:00

28 lines
819 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React, { Component } from 'react'
import { Select, Input } from 'antd'
class ParamsList extends Component {
constructor (props) {
super(props)
}
render () {
const Option = Select.Option
return (
<li>
<Select defaultValue="选填" style={{ width: 'auto' }} onChange={this.handleChange} size="large" className="required">
<Option value="必填">必填</Option>
<Option value="选填">选填</Option>
</Select>
<em className="title">参数名称</em>
<Input placeholder="参数名称" className="name" size="large" />
<em className="title">参数说明</em>
<Input placeholder="参数说明" className="name" size="large" />
<span className="close">×</span>
</li>
)
}
}
export default ParamsList