A very simple way to transform antd table to xlsx .
pnpm add @sudongyuer/antd-table-2-xlsx
Client
import { useExcel } from '@sudongyuer/antd-table-2-xlsx'
const { antdTable2xlsx } = useExcel()
//antd table columns and data fileName
antdTable2xlsx(columns, data, 'xxxFilName')