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

inputTable 在拖拽状态下进行编辑应该退出拖拽状态 #11471

Open
dabanheiji opened this issue Jan 9, 2025 · 0 comments
Open

inputTable 在拖拽状态下进行编辑应该退出拖拽状态 #11471

dabanheiji opened this issue Jan 9, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dabanheiji
Copy link
Contributor

是否关联于某个问题吗:

inputTable 组件配置了拖拽功能之后,进入拖拽状态下点击编辑编辑一行的数据,此时编辑不生效

预期的解决方案:

点击编辑后自动退出拖拽状态,或者在拖拽中应该禁用编辑

其他可接受方案:

请简单描述其他你可以接受的效果...

任何附加信息:

运行下面schema,然后点击拖拽进入拖拽模式,然后点击一行后面的编辑按钮,编辑之后点击确定数据不会更新

{
  "type": "page",
  "debug": true,
  "data": {
    "fundingPackageList": [
      {
        "assetId": "YINGXIAOHUA",
        "assetName": "盈小花",
        "exclusiveApproval": 1,
        "number": 5
      },
      {
        "assetId": "QMQB",
        "assetName": "全民钱包",
        "exclusiveApproval": 1,
        "number": 7
      },
      {
        "assetId": "JDGOLDBAR",
        "assetName": "京东金条",
        "exclusiveApproval": 0,
        "number": 8
      }
    ],
    "fundingPackages": [
      {
        "value": "BOC-DL",
        "label": "BOC-DL",
        "name": "BOC-DL"
      },
      {
        "value": "QMQB",
        "label": "QMQB",
        "name": "全民钱包"
      },
      {
        "value": "JDGOLDBAR",
        "label": "JDGOLDBAR",
        "name": "京东金条"
      },
      {
        "value": "ORANGEFUND",
        "label": "ORANGEFUND",
        "name": "桔子分期"
      },
      {
        "value": "YINGXIAOHUA",
        "label": "YINGXIAOHUA",
        "name": "盈小花"
      }
    ]
  },
  "body": {
    "type": "form",
    "id": "orderForm",
    "api": "https://aliyunfc-amis-mock-gmecwxibod.cn-beijing.fcapp.run/api/amis-mock/mock2/saveForm?waitSeconds=2",
    "body": [
      {
        "type": "input-table",
        "name": "fundingPackageList",
        "showIndex": true,
        "draggable": true,
        "removable": true,
        "addable": true,
        "editable": true,
        "editBtnLabel": "编辑",
        "editBtnIcon": false,
        "deleteBtnIcon": false,
        "showTableAddBtn": false,
        "deleteBtnLabel": "移除",
        "columns": [
          {
            "label": "资金包编号",
            "name": "assetId",
            "required": true,
            "quickEdit": {
              "type": "select",
              "clearable": true,
              "required": true,
              "autoFill": {
                "assetName": "${name||''}"
              },
              "searchable": true,
              "source": "${fundingPackages}"
            }
          },
          {
            "label": "资金包名称",
            "name": "assetName",
            "quickEdit": false
          },
          {
            "label": "是否独家送审",
            "name": "exclusiveApproval",
            "required": true,
            "quickEdit": {
              "type": "select",
              "clearable": true,
              "required": true,
              "options": [
                {
                  "label": "",
                  "value": 1
                },
                {
                  "label": "",
                  "value": 0
                }
              ]
            },
            "type": "mapping",
            "map": {
              "0": "",
              "1": ""
            }
          }
        ]
      }
    ]
  }
}
@dabanheiji dabanheiji added the enhancement New feature or request label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant