# 前端踩坑记录
<el-table :data="tableData" style="width: 100%" stripe="true" border="true" highlight-current-row>
<el-table-column prop="id" label="标签序号" width="auto" />
<el-table-column prop="tag" label="标签名称" width="auto" />
<el-table-column prop="creatTime" label="创建时间" width="auto" />
<el-table-column fixed="right" label="Operations" width="auto">
<template #default="scope" >
<el-button link type="primary" size="small" @click="show(scope.row.id)">Edit</el-button>
</template>
</el-table-column>
</el-table>
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
饿了么ui使用table获取某一个插槽的row,
<template #default="scope"></template>
1
or
<template v-slot="scope"></template>
1
版本VUE3.0
ELement-plus