Skip to content

an issue about itemDraggableOn #17091

@AnHolker

Description

@AnHolker

描述问题:

请用一段清晰简洁的文字描述问题是什么...
crud组件开启了itemDraggableOn后,拖拽的icon会丢失

截图或视频:

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

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

  1. 你是如何使用 amis 的?
    sdknpm其他...
    官网https://aisuda.bce.baidu.com/amis/zh-CN/components/crud#%E5%B1%9E%E6%80%A7%E8%A1%A8?page=1?page=1

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

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

code here...
{
  "type": "page",
  "body": [
    {
      "label": "新增",
      "type": "button",
      // "actionType": "dialog",
      "level": "primary",
      "className": "m-b-sm",
      "onEvent": {
        "click": {
          "actions": [
            {
              "actionType": "reload",
              "componentId": "table",
              "args": {
                "aaa": 111
              }
            }
          ]
        }
      }
    },
    {
      "type": "crud",
      "name": "table",
      "draggable": true,
      "id": "table",
      "itemDraggableOn": "${!aaa}",
      "api": "/amis/api/mock2/sample?orderBy=id&orderDir=desc",
      "syncLocation": false,
      "columns": [
        {
          "name": "id",
          "label": "ID"
        },
        {
          "name": "engine",
          "label": "Rendering engine"
        },
        {
          "name": "browser",
          "label": "Browser"
        },
        {
          "name": "platform",
          "label": "Platform(s)"
        },
        {
          "name": "version",
          "label": "Engine version"
        },
        {
          "name": "grade",
          "label": "CSS grade"
        }
      ]
    }
  ]
}
  1. 操作步骤
    请简单描述一下复现的操作步骤...
    点击新增按钮后点击排序即可复现

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