mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-23 06:40:59 +00:00
!674 【OpenHarmony开源贡献者计划2022】解决自定义组件事件绑定参数,无法获取问题
Merge pull request !674 from tangshengjian/master
This commit is contained in:
commit
8ed52c972a
@ -234,6 +234,9 @@ function bindSubEvent(vm: Vm, subVm: Vm, template: TemplateInterface): void {
|
||||
if (vm[template.events[type]]
|
||||
&& typeof vm[template.events[type]] === 'function') {
|
||||
vm[template.events[type]].apply(vm, args);
|
||||
} else if (template.events[type]
|
||||
&& typeof template.events[type] === 'function') {
|
||||
template.events[type].apply(vm, args);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user