mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
32 lines
649 B
JavaScript
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 |