vue中用$event实现自定义组件传递多个参数

eMaterial组件中只传递了一个值

this.$emit("change", row);

父组件使用的时候想要传递索引,$event接收eMaterial组件传过来的默认参数

<e-material @change="fMaterialNumberChange(scope.$index,$event)"/>
发布了142 篇原创文章 · 获赞 20 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_35958891/article/details/104986047