amis combineNum没有产生预期的效果

hpcdzsge  于 2022-11-06  发布在  其他
关注(0)|答案(1)|浏览(152)
描述问题:

combineNum没有产生预期的效果,combineNum: 1,combineNum: 2,combineNum: 3 的效果相同,数字并没有体现作用。

举例:比如我只想合并第一列,配置了combineNum: 1,如下图。

截图或视频:

如何复现(请务必完整填写下面内容):
{
  "type": "page",
  "body": {
    "type": "service",
    "data": {
      "rows": [
        {
          "engine": "Trident",
          "browser": "Internet Explorer 4.2",
          "platform": "Win 95+",
          "version": "4",
          "grade": "A"
        },
        {
          "engine": "Trident",
          "browser": "Internet Explorer 4.2",
          "platform": "Win 95+",
          "version": "4",
          "grade": "B"
        },
        {
          "engine": "Trident",
          "browser": "AOL browser (AOL desktop)",
          "platform": "Win 95+",
          "version": "4",
          "grade": "C"
        },
        {
          "engine": "Trident",
          "browser": "AOL browser (AOL desktop)",
          "platform": "Win 98",
          "version": "3",
          "grade": "A"
        },
        {
          "engine": "Trident",
          "browser": "AOL browser (AOL desktop)",
          "platform": "Win 98",
          "version": "4",
          "grade": "A"
        },
        {
          "engine": "Gecko",
          "browser": "Firefox 1.0",
          "platform": "Win 98+ / OSX.2+",
          "version": "4",
          "grade": "A"
        },
        {
          "engine": "Gecko",
          "browser": "Firefox 1.0",
          "platform": "Win 98+ / OSX.2+",
          "version": "5",
          "grade": "A"
        },
        {
          "engine": "Gecko",
          "browser": "Firefox 2.0",
          "platform": "Win 98+ / OSX.2+",
          "version": "5",
          "grade": "B"
        },
        {
          "engine": "Gecko",
          "browser": "Firefox 2.0",
          "platform": "Win 98+ / OSX.2+",
          "version": "5",
          "grade": "C"
        },
        {
          "engine": "Gecko",
          "browser": "Firefox 2.0",
          "platform": "Win 98+ / OSX.2+",
          "version": "5",
          "grade": "D"
        }
      ]
    },
    "body": [
      {
        "type": "table",
        "source": "$rows",
        "className": "m-b-none",
        "combineNum": 1,
        "columnsTogglable": false,
        "columns": [
          {
            "name": "engine",
            "label": "Rendering engine"
          },
          {
            "name": "browser",
            "label": "Browser"
          },
          {
            "name": "platform",
            "label": "Platform(s)"
          },
          {
            "name": "version",
            "label": "Engine version"
          },
          {
            "name": "grade",
            "label": "CSS grade"
          }
        ]
      }
    ]
  }
}

相关问题