import React from 'react';
import {Tabs} from 'antd-mobile'
import './index.less'

const tabs = [
    { title: '基本信息', key: 'basic' },
    { title: '详情附件', key: 'adjunct' },
    { title: '流程信息', key: 'flow' },
    { title: '流转意见', key: 'option' },
]

const Index = (props) => {
    return (
        <div className="blank-tab-card">
            <Tabs
                page={props.page}
                tabs={tabs}
                initialPage={"basic"}
                onChange={(tab, index) => props.onClick(tab.key, index)}
            />
        </div>
    );
};

export default Index;
