docs: [el-table] add FAQ category (#6907)

* docs: [el-table] add FAQ category

* - Update docs/en-US/component/table.md

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
This commit is contained in:
msidolphin
2022-03-31 10:27:06 +08:00
committed by GitHub
parent 5d0ee3ab34
commit e8ea457f6c

View File

@@ -339,3 +339,19 @@ table/table-layout
| ------ | ---------------------------------------------------------------------------------- |
| — | Custom content for table columns. The scope parameter is `{ row, column, $index }` |
| header | Custom content for table header. The scope parameter is `{ column, $index }` |
## FAQ
How to use image preview in the table?
```vue
<el-table-column label="Thumbnail" width="180">
<template #default="scope">
<div style="display: flex; align-items: center">
<el-image :preview-src-list="srcList"/>
</div>
</template>
</el-table-column>
```
PS: since the fixed column is implement by sticky, when you have fixed columns in table, please add the `preview-teleported` attribute in image