Vue 项目提示:`(Emitted value instead of an instance of Error) the “scope“ attribute for scoped slots

左手的ㄟ右手 2023-10-10 12:32 111阅读 0赞

Vue 完整警告信息:

  1. `(Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The n
  2. ot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.`

造成原因:

scope 属性在2.5以后的版本中已经废弃, 被 slot-scope 替代

办法解决:

检查下你的列表组件里,slot 里的

发表评论

表情:
评论列表 (有 0 条评论,111人围观)

还没有评论,来说两句吧...

相关阅读