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

CURD 组件开启点选无效 #11444

Open
younglifestyle opened this issue Jan 2, 2025 · 0 comments
Open

CURD 组件开启点选无效 #11444

younglifestyle opened this issue Jan 2, 2025 · 0 comments

Comments

@younglifestyle
Copy link

描述问题:

https://baidu.github.io/amis/zh-CN/components/crud#%E5%BC%80%E5%90%AF%E7%82%B9%E9%80%89

截图或视频:

image

当前使用是无效的,在文档中正常,但实际放到amis编辑器中,无法开启。

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

  1. 你是如何使用 amis 的?
    sdknpm其他...

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

粘贴至amis编辑器中,https://aisuda.github.io/amis-editor-demo/#/edit/0

  1. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "body": [
    {
      "type": "crud",
      "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/sample",
      "syncLocation": false,
      "selectable": true,
      "headerToolbar": [
        {
          "type": "button",
          "label": "按钮",
          "visibleOn": "${selectedItems.length}",
          "actionType": "toast",
          "toast": {
            "items": [
              {
                "level": "info",
                "body": "${selectedItems|json}"
              }
            ]
          },
          "id": "u:24ca7b52deb4"
        }
      ],
      "columns": [
        {
          "name": "id",
          "label": "ID",
          "id": "u:e594be8f6651"
        },
        {
          "name": "engine",
          "label": "Rendering engine",
          "id": "u:5470b4c67584"
        },
        {
          "name": "browser",
          "label": "Browser",
          "id": "u:c394ac241e9c"
        },
        {
          "name": "platform",
          "label": "Platform(s)",
          "id": "u:93e93af4feae"
        },
        {
          "name": "version",
          "label": "Engine version",
          "id": "u:02a8f4a05c5e"
        },
        {
          "name": "grade",
          "label": "CSS grade",
          "id": "u:51aecad17fc8"
        }
      ],
      "id": "u:249f7089ee5e"
    }
  ],
  "id": "u:6e369ffd4c1e",
  "asideResizor": false,
  "pullRefresh": {
    "disabled": true
  }
}
  1. 操作步骤
    请简单描述一下复现的操作步骤...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant