当需要遍历图片时,不能直接使用prop绑定值,具体 代码如下

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

注意:scope.row.head_pic 中的head_pic  就是平常我们绑定在prop中的值

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2021-11-06
  • 2021-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2021-06-30
  • 2021-09-22
  • 2021-05-26
  • 2021-08-29
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案