feat: 基础事件增加components参数

This commit is contained in:
retire
2023-07-13 11:23:51 +08:00
committed by 奔跑的面条
parent 7ae5fcda1e
commit ad06c4f82a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ export const useLifeHandler = (chartConfig: CreateComponentType | CreateComponen
try {
return new Function(`
return (
async function(mouseEvent){
async function(components,mouseEvent){
${fnStr}
}
)`)()
)`)().bind(undefined,components)
} catch (error) {
console.error(error)
}