Element ui表格展示多张图片问题


显示一张图片的方法:

1 <el-table-column label="头像" width="100">
2                 <template scope="scope">
3                     <img :src="scope.row.head_pic" width="40" height="40" class="head_pic"/>
4                 </template>
5             </el-table-column>

显示多张图片:

1 <el-table-column prop="pictures" label="描述图片">
2                 <template scope="scope">
3                     <img v-for="item in scope.row.pictures" :src="item" width="40" height="40" class="head_pic"/>
4                </template>
5             </el-table-column>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM