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

32 lines
649 B
JavaScript

import React, { Component } from 'react'
import { Tabs } from 'antd'
class Result extends Component {
constructor(props) {
super(props)
}
callback () {
}
render () {
const TabPane = Tabs.TabPane
return (
<div className="result">
<strong className="res-h3">返回示例 :</strong>
<Tabs defaultActiveKey="1" onChange={this.callback}>
<TabPane tab="成功结果" key="1">
<textarea></textarea>
</TabPane>
<TabPane tab="失败结果" key="2">
<textarea></textarea>
</TabPane>
</Tabs>
</div>
)
}
}
export default Result