Try removing the extra positional arguments, or specifying the name for named arguments.

报错图片应该是这样的。

组件传参与一般的函数传参不一样,我们需要在调用它的地方,括号里面加上每个参数声明时候的名字 。

例如:

声明时候 :

在调用时候: 

猜你喜欢

转载自blog.csdn.net/DongShanYuXiao/article/details/132117207
今日推荐