el-table-column 数据处理、数据转换

在Element UI table中 我们需要用到 formatter 属性来格式化内容

<el-table-column prop="hasBack" label="是否有多服务" :formatter="hasBackFormat"></el-table-column>
                 //是否多服务数据处理
                hasBackFormat(row,column){
                    console.log(row)
                    return row.hasBack==1?'是':'否';
                },
发布了164 篇原创文章 · 获赞 38 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/corleone_4ever/article/details/104562724
今日推荐