下图是效果图
效果图
具体用到的代码如下

    <el-table-column label="头像" align="center" height="10px">
      <template slot-scope="scope">
        <el-popover placement="right" title="" trigger="hover">
          <img :src="scope.row.image_url" />
          <img slot="reference" :src="scope.row.image_url" :alt="scope.row.image_url" style="max-height: 50px;max-width: 130px">
        </el-popover>
      </template>
    </el-table-column>

参考:vue中element-ui表格缩略图悬浮放大功能的实例代码

GitHub 加速计划 / eleme / element
13
1
下载
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:16 天前 )
c345bb45 1 年前
a07f3a59 * Update transition.md * Update table.md * Update transition.md * Update table.md * Update transition.md * Update table.md * Update table.md * Update transition.md * Update popover.md 1 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐