import * as React from 'react'; import Tables from './tables'; import './index.scss'; import Tab from '../common/tab' interface Props{ data: any } const tabItems = [{ text: '打赏记录', value:1 }, { text: '获赏记录', value:2 },{ text: '提现记录', value:3 }] export default class BountyBottom extends React.Component{ state = { tabIndex:0 } choosTab = (value:number,index:number) => { this.setState({ tabIndex:index }) this.refs.table.changePage() } refs:any render(){ const {tabIndex} = this.state; const {data} = this.props; const datas = ['out','in','cash'] let dataType = datas[tabIndex] return
} }