vue---el-table根据数据不一样,展现不一样的内容

需求描述:举例说明,由图一修改成图二的效果。下图状态为1则显示“启动”,状态为0则显示“禁用”css (图一)html   (图二)spa   解决方法:code <el-table-column prop="status" label="状态" width="150" align="center"> <template slot-scope="scope">
相关文章
相关标签/搜索