zoukankan      html  css  js  c++  java
  • vue+element在table中某一单元格遍历(多个附件下载)

    记录下具体代码写法而已,忽略

    <el-table-column min-width="140" label="附件" header-align="center" align="center">
            <template slot-scope="scope">
                  <template v-for="(item,index) in scope.row.fileViewList">
                     <el-link :key="index" type="primary" :href="item.url" target="_blank">{{ item.name }}</el-link>
                     <span v-if="index != scope.row.fileViewList.length-1" :key="index" style="color:#000">、</span>
                  </template>
            </template>
    </el-table-column>
     
    效果如下:

  • 相关阅读:
    原型污染
    C#之抛异常
    为什么['1', '7', '11'].map(parseInt) returns [1, NaN, 3]?
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    其他
  • 原文地址:https://www.cnblogs.com/xiaokangk/p/13631452.html
Copyright © 2011-2022 走看看