提交 1929e1e6 编写于 作者: Q qiang

fix: broadcast componentName

上级 e6fba19a
......@@ -61,7 +61,7 @@ const handleData = {
function broadcast (vm, componentName, eventName, ...params) {
vm.$children.forEach(child => {
const name = child.$options.name && child.$options.name.substr(1)
const name = child.$options.name && child.$options.name.replace(/^VUni/, '')
if (~componentName.indexOf(name)) {
child.$emit(eventName, ...params)
}
......@@ -130,4 +130,4 @@ export function initData (Vue) {
}
}
})
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册