AntDesign for Vue Table组件 v-for和slot-scoped渲染报错

时间:2021-07-12 22:33:29   收藏:0   阅读:93

报错写法:

技术分享图片

 

报错信息:

  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>包裹

 

正确写法:

技术分享图片

 

原文:https://www.cnblogs.com/ALAIWA/p/15003704.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!