顯示一張圖片的方法:
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>
