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>
 
效果如下:

 

 


 

 


免责声明!

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



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