antd中table列的自定义排序


//antd中table列的自定义排序
{
key: 'completerate',
title: '完成度',
dataIndex: 'completerate',
sorter : ( a: any, b: any) => a. completerate. replace( "%", "") / 100 - b. completerate. replace( "%", "") / 100,
sortOrder: sortedInfo. columnKey === 'completerate' && sortedInfo. order,
},

antd中table列的自定义显示

{
title: '性别',
dataIndex: 'gender',
key: 'gender',
render : ( text: any) => < span > { text=== 0? '男': '女' } span >,
}

你可能感兴趣的:(React)