support Cascader
support Cascader
This commit is contained in:
parent
2d43f26b05
commit
47a7f21dc6
11 changed files with 195 additions and 94 deletions
|
@ -5,6 +5,7 @@ function broadcast(componentName, eventName, params) {
|
|||
if (name === componentName) {
|
||||
child.$emit.apply(child, [eventName].concat(params));
|
||||
} else {
|
||||
// todo 如果 params 是空数组,接收到的会是 undefined
|
||||
broadcast.apply(child, [componentName, eventName].concat([params]));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue