<img-list @upImg="upFile(scope.row, $event)" type="text"></img-list>
其中$event 就是传过来的值
upFile(row,obj){
console.log(row)
console.log(obj)
}
该段代码展示了在Vue中使用<img-list>组件,其中upImg是自定义事件,通过$event传递参数。当事件触发时,upFile函数被调用,打印row和obj的信息,这有助于调试和理解组件内部的数据交互。
<img-list @upImg="upFile(scope.row, $event)" type="text"></img-list>
其中$event 就是传过来的值
upFile(row,obj){
console.log(row)
console.log(obj)
}
1544
3061

被折叠的 条评论
为什么被折叠?
