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

 

正确写法:

 

posted @ 2021-07-12 20:03  小稀饭  阅读(645)  评论(0)    收藏  举报