赞
踩
<el-table-column label="视频" align="center"> <template #default="scope" style="display: flex;"> <div style="display: flex; align-items: center"> <video v-for="(item, index) in scope.row.videos" :key="index" id="videoPlayer" class="video-js vjs-default-skin" controls playsinline width="150px"> <source :src="item" type="video/mp4" /> </video> </div> </template> </el-table-column> <el-table-column label="图片" align="center"> <template #default="scope" style="display: flex;"> <div style="display: flex; align-items: center"> <el-image v-for="img in scope.row.images" :src="img" :preview-src-list="scope.row.images" /> </div> </template> </el-table-column>
在图片元素添加属性 preview-teleported
<el-image preview-teleported v-for="img in scope.row.images" :src="img" :preview-src-list="scope.row.images" />
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。