<el-table-column prop="manProp" label="属性" :formatter="changeManProp" width=""></el-table-column>
改变显示的人物属性
changeManProp(row, column){
const manProp = row[column.property];
var string = null;
if(manProp == 0){
string = "副";
}
else{
string = "主";
}
return string;
},
网友评论