Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro3.4.9中原生插件引用。imgOK回调无反应 #393

Open
huanlirui opened this issue Aug 21, 2022 · 1 comment
Open

taro3.4.9中原生插件引用。imgOK回调无反应 #393

huanlirui opened this issue Aug 21, 2022 · 1 comment

Comments

@huanlirui
Copy link

使用taro + react

 const onImgOK = e => {
//无法打出log
    console.log("e", e);
  };

 <painter palette={data} imgOK={onImgOK} />

在断点调试模式下可以看到。确实程序进入了

 that.triggerEvent('imgOK', {
              path: filePath,
            });

image

@heruns
Copy link

heruns commented Aug 24, 2022

监听使用 <painter palette={data} onImgOK={onImgOK} />,另外需要将 that.triggerEvent('imgOK', { path: filePath }); 中的 imgOK 改成 img-ok,参考 taro 文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants