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

input-table组件的实行initDrag动作后缺少取消动作,无法还原到非排序状态 #9597

Closed
tujiajun opened this issue Feb 6, 2024 · 0 comments · Fixed by #9971

Comments

@tujiajun
Copy link

tujiajun commented Feb 6, 2024

描述问题:

如题

截图或视频:

image

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

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

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

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

{
  "type": "page",
  "body": {
    "type": "form",
    "api": "/amis/api/mock2/form/saveForm",
    "body": [
      {
        "type": "button",
        "label": "开始表格排序",
        "onEvent": {
          "click": {
            "actions": [
              {
                "componentId": "drag-input-table",
                "actionType": "initDrag"
              }
            ]
          }
        }
      },
      {
        "type": "input-table",
        "label": "表格表单",
        "id": "drag-input-table",
        "name": "table",
        "columns": [
          {
            "name": "a",
            "label": "A"
          },
          {
            "name": "b",
            "label": "B"
          }
        ],
        "addable": true,
        "footerAddBtn": {
          "label": "新增",
          "icon": "fa fa-plus",
          "hidden": true
        },
        "strictMode": true,
        "minLength": 0,
        "needConfirm": false,
        "showTableAddBtn": false
      }
    ],
    "data": {
      "table": [
        {
          "id": 1,
          "a": "a1",
          "b": "b1"
        },
        {
          "id": 2,
          "a": "a2",
          "b": "b2"
        },
        {
          "id": 3,
          "a": "a3",
          "b": "b3"
        },
        {
          "id": 4,
          "a": "a4",
          "b": "b4"
        },
        {
          "id": 5,
          "a": "a5",
          "b": "b5"
        }
      ]
    }
  }
}
  1. 操作步骤
    点击开始排序无法取消
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant