前端在表格内编号处加上超链接,显示详情:
<el-table-column prop="id" label="名称" align="center" width="100">
<template slot-scope="props">
<el-link type="primary" @click="handle(props.row)" :underline="false">{{props.row.id}}</el-link>
</template>
</el-table-column>
本文介绍了一种在前端表格中将编号转化为超链接的方法,并提供了具体的 Vue 框架下的 Element UI 组件实现示例。
前端在表格内编号处加上超链接,显示详情:
<el-table-column prop="id" label="名称" align="center" width="100">
<template slot-scope="props">
<el-link type="primary" @click="handle(props.row)" :underline="false">{{props.row.id}}</el-link>
</template>
</el-table-column>

被折叠的 条评论
为什么被折叠?