mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user