import React from 'react'
import { Space } from 'antd'
function tableConfig(callback:(data:any,type:'edit'|'look')=>void):any{
    return [
        {
            title: 'ID',
            dataIndex: 'id',
            key: 'id',
            align: 'center',
            width:70
        },
        {
            title: '定向名称',
            dataIndex: 'targetingName',
            key: 'targetingName',
            align: 'center',
        },
        {
            title: '定向描述',
            dataIndex: 'description',
            key: 'description',
            align: 'center',
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            key: 'createTime',
            align: 'center',
        },
         {
            title:'操作',
            dataIndex:'cz',
            key: 'cz',
            align: 'center',  
            render:(a: any,b: any)=>{
                return <Space>
                     <a onClick={()=>{
                         callback(b,'look')
                     }}>详情</a>
                 </Space>
             }
        }
    ]
}
export default tableConfig