如果你的vue版本低于2.6,且遇到如下报错:
Property or method "slotProps" is not defined on the instance but referenced during render.
解决办法就是把vue和vue-template-compiler的版本都升级到>=2.6.0且版本号要一致,否则还会报其他错误。升级完了之后抛弃slot-scope的写法,使用最新的v-slot语法就正常了。
如果你的vue版本低于2.6,且遇到如下报错:
Property or method "slotProps" is not defined on the instance but referenced during render.
解决办法就是把vue和vue-template-compiler的版本都升级到>=2.6.0且版本号要一致,否则还会报其他错误。升级完了之后抛弃slot-scope的写法,使用最新的v-slot语法就正常了。
Peggy7赞 3阅读 18.1k评论 1
程序员海军赞 11阅读 3.4k
三掌柜赞 2阅读 769评论 1
大卫talk赞 1阅读 2.2k
大卫talk赞 2阅读 6.5k
倔强青铜三赞 1阅读 789
me_zhazha赞 2阅读 788
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。