<el-table class="table" :data="tableData" border style="width: 100%" @row-click='jumpDetails'
@selection-change="handleSelectionChange" empty-text row-key="id">
<el-table-column align="center" v-if="multiple" type="selection" width="55"></el-table-column>
<el-table-column :fixed="item.fixed" v-for="(item, index) in tableHeader" :key="index" :show-overflow-tooltip='item.tooltip' :sortable="item.sortable"
:align="item.align" :header-align="item.headerAlign" :label="item.title" :min-width="item.width">
<template slot-scope="scope">
<!-- matchObj -->
<span v-if="!item.hasOperating && !item.list">
<span
v-if="!item.date">{
{item.matchObj ? item.matchObj[scope.row[item.attrName]] : scope.row[item.attrName]}}</span>
<!-- 时间过滤 -->
<span v-if="item.date">{
{scope.row[item.attrName] | format}}</span>
</span>
elementui table二次封装
最新推荐文章于 2024-07-09 17:09:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)