- 获取表格某行数据
//vue2.x的写法
<el-table-column label="测试" align="center" prop="ce">
<template slot-scope="scope"> //2.x的写法
<span>{{scope.row.ce}}</span>
</template>
<el-table-column prop="msgType" label="消息内容">
<template #default="{ row, $index }">
<span v-if="row.msgType == 1">{{ row.msg }}</span>
</template>
</el-table-column>
网友评论