Skip to content

bug: JSSDK 升级到 3.5.3 之后 action 组件 target 无效 #8990

Open
@502647092

Description

@502647092

描述问题:

action 组件 升级后 submit 的 target 无效
3.2.x 正常 3.5.3 不正常

截图或视频:

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

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

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

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

{
  "name": "accountLogs",
  "type": "crud",
  "api": {
    "url": "/user/accountLogs",
    "method": "post",
    "data": {
      "id": "${id}",
      "&": "$$"
    }
  },
  "defaultParams": {
    "perPage": 15
  },
  "syncLocation": false,
  "headerToolbar": [
    {
      "type": "button",
      "label": "刷新",
      "level": "dark",
      "align": "left",
      "actionType": "reload"
    },
    {
      "type": "action",
      "label": "搜索",
      "level": "primary",
      "align": "right",
      "actionType": "submit",
      "target": "search",
      "close": false
    }
  ],
  "filter": {
    "name": "search",
    "title": "条件搜索",
    "mode": "horizontal",
    "wrapWithPanel": false,
    "controls": [
      {
        "label": "订单时间",
        "name": "time",
        "value": "-7days,+1days",
        "type": "datetime-range",
        "format": "YYYY-MM-DD HH:mm:ss",
        "clearable": true
      },
      {
        "type": "checkboxes",
        "name": "log_type",
        "label": "流水类型",
        "value": "",
        "source": "/h5/accountLogTypes?radio=true"
      }
    ]
  },
  "columns": [
    {
      "name": "account_log_id",
      "label": "流水号",
      "type": "text",
      "className": "nowrap"
    },
    {
      "type": "operation",
      "label": "操作",
      "fixed": "right",
      "className": "nowrap",
      "buttons": []
    }
  ]
}

  1. 操作步骤
    上述 schema 在 3.2.0 正常 升级到 3.5.3 后失效

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions