el-table 表格循环多张图片
<el-table :data= " weekList " stripe tooltip-effect= " dark " class = " table " > <el-table- column v - for = " (item, index) in tableOrderItem " :key = " index " :width = " item.width " :prop = " item.prop " :label = " item.label " align = " center " show -overflow- tooltip > <template slot-scope= " scope " > <template v- if = " item.prop === 'commodityDetails' " > <div v-html= " scope.row.commodityDetails " ></div> </template> <!-- 图片有多张的情况 先分隔为数组 然后利用v- for 遍历得到 src --> <template v- else - if = " item.prop === 'picture1' " > <div v- for = " (item,index) in scope.row.picture1.split(',') "