首页 > 其他 > 详细

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

时间:2021-07-12 22:33:29      阅读:89      评论:0      收藏:0      [点我收藏+]

报错写法:

技术分享图片

 

报错信息:

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

 

正确写法:

技术分享图片

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!