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

merge the latest store data #10581

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kangzhanlei
Copy link
Contributor

What

在执行Action的时候,取不到最新的数据

{
  "type": "page",
  "body": {
    "type": "form",
    "debug": true,
    "body": [
      {
        "name": "name",
        "type": "input-text",
        "label": "测试一下"
      },
      {
        "name": "text",
        "type": "input-text",
        "label": "text",
        "onEvent": {
          "blur": {
            "actions": [
              {
                "actionType": "toast",
                "args": {
                  "msg": "${name}"
                }
              }
            ]
          }
        }
      }
    ]
  }
}

在第二个域blur的时候,获取不到第一个域里输入的最新值

Why

第一个域change的时候修改的是store里的值,并不体现的props的data里。

How

合并store中的数据,供action使用

@2betop
Copy link
Collaborator

2betop commented Jul 17, 2024

看错了,应该是 props.data,而不是 props.store.data, 并不是所有的 props.data 都是 store.data 下发的

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

Successfully merging this pull request may close these issues.

3 participants