AntDesign Vue Table組件 v-for和slot-scoped渲染報錯


報錯寫法:

 

報錯信息:

  Ambiguous combined usage of slot-scope and v-for on <span> (v-for takes higher priority). Use a wrapper <template> for the scoped slot to make it clearer.

  v-for和slot-scoped不能同時組合使用,v-for的優先級更高,建議使用<template>包裹

 

正確寫法:

 


免責聲明!

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



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