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

自定义组件里触发动作不生效 #11597

Open
yyn0210 opened this issue Feb 13, 2025 · 0 comments
Open

自定义组件里触发动作不生效 #11597

yyn0210 opened this issue Feb 13, 2025 · 0 comments

Comments

@yyn0210
Copy link
Contributor

yyn0210 commented Feb 13, 2025

描述问题:

在自定义组件里调用props.onAction触发setValuecustom等动作不生效,目前测试只有dialogdrawerreload好使

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    npm

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.10.0

  3. 粘贴有问题的完整 amis schema 代码:

 // let _node = {...node};
        let action = {
            type: "action",
            ...clickEvents[0]
        };


        let data = {
            ...props.data,
            
        };

        props.onAction(
            e,
            action,
            data // 这是 data
        );
  1. 操作步骤
    请简单描述一下复现的操作步骤...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant