baidu/amis

无法打印表格

Closed this issue · 1 comments

示例中无法打印表格

{
  "type": "page",
  "body": [
    {
      "type": "button",
      "label": "打印",
      "level": "primary",
      "className": "mr-2",
      "onEvent": {
        "click": {
          "actions": [
            {
              "actionType": "print",
              "args": {
                "testid": "mycrud"
              }
            }
          ]
        }
      }
    },
    {
      "type": "crud",
      "api": "/amis/api/mock2/sample",
      "testid": "mycrud",
      "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"
        }
      ]
    }
  ]
}

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.