报错如下

属性或方法“范围”不是在实例上定义的,而是在呈现期间引用的。 通过初始化属性,确保此属性是反应性的,无论是在数据选项中,还是对于基于类的组件。

Property or method "scope" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components

 

 原因在template中未添加此行声明 slot-scope="scope"

Property or method "scope" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components

 

相关文章:

  • 2021-08-21
  • 2021-08-19
  • 2021-07-02
  • 2021-12-03
  • 2021-07-22
  • 2021-04-14
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-01-23
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案