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