import { copy } from "@/utils/utils" import { TableProps } from "antd" import React from "react" const columns = (edit: (data: any) => void): TableProps['columns'] => { const data: TableProps['columns'] = [ { title: '操作', dataIndex: 'cz', key: 'cz', align: 'center', width: 70, render: (_, b) => { return edit(b)}>修改 } }, { title: '企业微信名称', dataIndex: 'corpName', key: 'corpName', ellipsis: true, width: 180, render: (a) => { return {a} } }, { title: '投放端企业微信ID', dataIndex: 'tencentCorpId', key: 'tencentCorpId', ellipsis: true, render: (a) => { return copy(a)}>{a} } }, { title: '企微端企业微信ID', dataIndex: 'localCorpId', key: 'localCorpId', ellipsis: true, render: (a) => { return copy(a)}>{a} } }, { title: '腾讯广告第三方企微应用ID', dataIndex: 'agentId', key: 'agentId', ellipsis: true, render: (a) => { return copy(a)}>{a} } }, { title: '创建时间', dataIndex: 'createTime', key: 'createTime', align: 'center', width: 140, ellipsis: true, render: (a) => { return {a} } }, { title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', align: 'center', width: 140, ellipsis: true, render: (a) => { return {a} } } ] return data } export default columns