利用 customRender这个数据来处理
<template>
<a-table
:columns="columns"
:dataSource="list" >
</a-table>
</template>
<script>
export default {
name: "FinancialFlowList",
data () {
return {
columns:[
{title: '性别', dataIndex: 'sex', key: 'sex',
customRender:function (text) {
if(text=='x'){
return "男";
}else if(text=='y'){
return "女";
}else{
return text;
}
}},
],
list:[{sex:'x'}]
}
}
}
</script>