mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
fix:chart事件失效问题 (#5765)
This commit is contained in:
parent
39ab060c54
commit
d948cb13c0
@ -45,6 +45,16 @@ export default {
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
legendselectchanged: {
|
||||
actions: [
|
||||
{
|
||||
actionType: 'toast',
|
||||
args: {
|
||||
msg: '${event.data|json}'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
config: {
|
||||
|
@ -309,7 +309,7 @@ export class Chart extends React.Component<ChartProps> {
|
||||
const {data, dispatchEvent} = this.props;
|
||||
|
||||
dispatchEvent(
|
||||
(ctx as any).event,
|
||||
(ctx as any).event || ctx.type,
|
||||
createObject(data, {
|
||||
...pick(
|
||||
ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user