首页 > 编程知识 正文

element表格<el-table>当某一格为空值时,用符号 ‘--‘ 代替

时间:2023-05-03 07:13:36 阅读:194567 作者:4008

<el-table-column label="类型" width="75" > <template slot-scope="scope">{{scope.row.name?scope.row.name:'--'}}</template> </el-table-column>

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。