1.代碼:html
<template> <span v-for="item in props.row.thumb.split(',')"> <el-popover placement="left" title="" trigger="hover" width="1000"> <img :src="item"width="100%"/> <img slot="reference" :src="item" :alt="item" style="max-height: 150px;max-width: 150px; padding: 5px"> </el-popover> </span> </template>
2.簡單解釋數組
Popover彈出框更多的參數解釋請轉至官網:http://element-cn.eleme.io/#/zh-CN/component/popoverspa
3.效果圖code