{
  "type": "page",
  "body": [
    {
      "type": "steedos-object-listview",
      "label": "列表视图",
      "objectApiName": "${objectName}",
      "listName": "all",
      "showHeader": true,
      "className": "",
      "id": "u:70d5861033de",
      "crudMode": "cards",
      "crud": {
        "columnsCount": 4,
        "id": "u:553974f9435b",
        "mode": "cards",
        "footerToolbar": [],
        "switchPerPage": false,
        "bulkActions": [],
        "card": {
          "itemAction": {
            "actionType": "link",
            "link": "/app/admin/steedos_packages/view/${_id}"
          },
          "useCardLabel": false,
          "body": [
            {
              "type": "tpl",
              "tpl": "<div class='antd-Card-heading bg-white'><span class='antd-Card-avtar pull-left thumb-md m-r slds-icon slds-icon_container slds-icon-${iconCategory}-${iconName} ${display === \"split\" && 'hidden'}'><img class='antd-Card-img'src='${icon}' /></span><div class='antd-Card-meta'><div class='antd-Card-title'><span class='antd-TplField' title='${label}'><span>${label}</span></span></div><div class='antd-Card-subTitle'><span class='antd-TplField' title='${description}'><span>${description}</span></span></div><div class='antd-Card-desc'><span class='antd-TplField'><span><span class='bg-${status === 'enable' ? 'green': 'gray'}-300 rounded-full px-2 py-0.5 mt-2 inline-block'>${_display.status}</span><span class='text-gray-600 px-2 py-0.5 mt-2 inline-block float-right'>${version}</span></span></span></div></div></div>"
            }
          ],
          "actions": [
            {
              "label": "${uiSchema.actions.enable.label}",
              "disabledOn": "${status === 'enable' || window:Steedos.settings.public.enable_saas || isUnmanaged === true}",
              "className": "mr-4",
              "onEvent": {
                "click": {
                  "actions": [
                    {
                      "actionType": "custom",
                      "script": "let todo = event.data.uiSchema.actions.enable.todo;\nlet objectName = event.data.objectName;\nlet _id = event.data._id;\n\nif (todo) {\n  (new Function(\"(\" + todo + \")(\" + \"'\" + objectName + \"'\" + \",'\" + _id + \"')\"))();\n}\n"
                    }
                  ]
                }
              },
              "id": "u:553d77aa3872"
            },
            {
              "label": "${uiSchema.actions.disable.label}",
              "disabledOn": "${status !== 'enable' || window:Steedos.settings.public.enable_saas || isUnmanaged === true}",
              "onEvent": {
                "click": {
                  "actions": [
                    {
                      "actionType": "custom",
                      "script": "let todo = event.data.uiSchema.actions.disable.todo;\nlet objectName = event.data.objectName;\nlet _id = event.data._id;\n\nif (todo) {\n  (new Function(\"(\" + todo + \")(\" + \"'\" + objectName + \"'\" + \",'\" + _id + \"')\"))();\n}\n"
                    }
                  ]
                }
              },
              "id": "u:7e1db04924da",
              "className": "mr-4"
            }
          ],
          "type": "card",
          "id": "u:2bb7748ac402"
        }
      },
      "adaptor": "if (payload.data.rows.length) {\n  var unpkgUrl = window.Builder && window.Builder.settings.unpkgUrl || \"\";\n  payload.data.rows.forEach(function (row) {\n    if (!row.icon) {\n      row.icon = \"standard.default\";\n    }\n    if (row.icon) {\n      if (!/^http(s?):\\/\\//.test(row.icon) && !row.icon.endsWith('.jpg') && !row.icon.endsWith('.png')) {\n        var iconCategory = \"standard\";\n        var iconName = row.icon;\n        var tags = row.icon.split(\".\");\n        if (tags.length > 1) {\n          iconCategory = tags[0];\n          iconName = tags[1];\n        }\n        row.iconCategory = iconCategory;\n        row.iconName = iconName.replace(\"_\", \"-\");\n        row.icon = unpkgUrl + \"/@salesforce-ux/design-system@2.22.2/assets/icons/\" + iconCategory + \"/\" + iconName.replace(\"-\", \"_\") + \"_120.png\";\n      }\n    }\n  });\n}\nreturn payload;"
    }
  ],
  "regions": [
    "body"
  ],
  "data": {
    "objectName": "steedos_packages",
    "context": {}
  },
  "id": "u:2775cd701d6a",
  "name": "page_test__c_list",
  "bodyClassName": "p-0",
  "cssVars": {
    "--text--muted-color": "#bebfc4"
  },
  "css": {
    ".antd-Wrapper.steedos-object-table > .antd-Service": {
      "flex-grow": "1"
    },
    ".antd-Service.steedos-object-table .antd-Crud .antd-Cards": {
      "height": "100%"
    },
    ".antd-Service.steedos-object-table .antd-Crud .antd-Cards .antd-Cards-toolbar": {
      "padding-top": "0.5rem",
      "padding-bottom": "0.5rem",
      "padding-left": "1rem",
      "padding-right": "1rem"
    },
    ".antd-Service.steedos-object-table .antd-Crud .antd-Cards .antd-Cards-body": {
      "margin": "0.25rem"
    },
    ".antd-Card-toolbar .ant-ribbon-wrapper": {
      "position": "absolute",
      "top": "-14px",
      "right": "0"
    },
    ".antd-Crud .antd-Cards .antd-Card .antd-Card-heading .antd-Card-avtar, .antd-Crud .antd-Cards .antd-Card .antd-Card-heading .antd-Card-avtarText": {
      "min-width": "50px",
      "min-height": "50px",
      "border-radius": "6px",
      "width": "50px",
      "height": "50px"
    },
    ".antd-Crud .antd-Cards .antd-Card .antd-Card-meta": {
      "overflow": "hidden"
    },
    ".antd-Crud .antd-Cards .antd-Card .antd-Card-meta .antd-Card-subTitle": {
      "-webkit-line-clamp": "1",
      "max-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)",
      "min-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)"
    },
    ".steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card .antd-Card-body": {
      "padding-left": "0px",
      "padding-right": "0px",
      "padding-top": "0px",
      "margin-top": "0px",
      "padding-bottom": "0px"
    },
    ".steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card": {
      "padding-top": "2px"
    },
    ".antd-Card-actions a[disabled]": {
      "box-shadow": "none",
      "cursor": "not-allowed"
    },
    ".antd-Card-actions a[disabled]:hover": {
      "color": "rgba(0,0,0,.25)"
    }
  }
}