element how to use Table Slot.. append in el-table?

zphenhs4  于 4个月前  发布在  其他
关注(0)|答案(6)|浏览(86)

how to use Table Slot.. append in el-table?

fiei3ece

fiei3ece1#

+1
i can't found any usage in documentation.

vnzz0bqm

vnzz0bqm2#

+1 i can't found any usage in documentation.

<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="date" label="Date" width="180"> </el-table-column>
    <el-table-column prop="name" label="Name" width="180"> </el-table-column>
    <el-table-column prop="address" label="Address"> </el-table-column>

    <div slot="append">
        test content ...test content ...test content ...
    </div>
  </el-table>
</template>
uqcuzwp8

uqcuzwp83#

how to use Table Slot.. append in el-table?

I was able to display it this way:

<el-table :data="yourData">
  <el-table-column prop="name" label="Name"> ... </el-table-column>
  <el-table-column prop="surname" label="Surname"> ... </el-table-column>
  
  <template #append>
      blablabla
  </template>
  
</el-table>
oymdgrw7

oymdgrw74#

try this

<el-table :data="yourData">
  <el-table-column prop="name" label="Name"> ... </el-table-column>
  <el-table-column prop="surname" label="Surname"> ... </el-table-column>

  <div slot="append">blablabla</div>  

</el-table>
ycggw6v2

ycggw6v25#

infinite-loading in el-table?

hgc7kmma

hgc7kmma6#

how to use InfiniteScroll in el-table?

相关问题