1. 程式人生 > >element ui框架 table 自定義列顯示

element ui框架 table 自定義列顯示

<el-table :data="pageData" stripe border>
  <el-table-column label="序號" align="center" width="80">
    <template slot-scope="scope">
      {{scope.$index+1+pagesize*(currentPage-1)}}
    </template>
  </el-table-column>
  <el-table-column prop="ip" label="IP" align="center"
> </el-table-column> <el-table-column label="協議" align="center"> <template slot-scope="scope"> HTTP </template> </el-table-column> </el-table>