element組件庫中表格組件中遍歷顯示數組中內容


<el-table-column prop="userList" label="負責人">
        <template slot-scope="scope">
          <span v-for="(u,i) in scope.row.userList">{{u.userName}}&nbsp&nbsp</span>
        </template>
      </el-table-column>
在表格組件的el-table-column中添加要遍歷的數據,組件通過內部封裝的插槽進行顯示
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM