Bricks Schema 中文文档:图片库控件

📄 原始资料  |  展开查看原始 JSON(image-gallery.json){ “$schema”: “https://json-schema.org/draft/2020-12/schema”, “$id”: “bricks://controls/image-gallery”, “schemaVersion”: “2.3”, “title”: “Image Gallery Control”, “description”: “Value schema for image-gallery control type”, “type”: “object”, “proper…

📄 原始资料  |  展开查看原始 JSON(image-gallery.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/image-gallery",
  "schemaVersion": "2.3",
  "title": "Image Gallery Control",
  "description": "Value schema for image-gallery control type",
  "type": "object",
  "properties": {
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Image settings",
        "properties": {
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "filename": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "full": {
            "type": "string"
          },
          "useDynamicData": {
            "type": "string"
          }
        },
        "descriptionZh": "图像设置。"
      }
    }
  },
  "controlProperties": [
    "type",
    "label",
    "tab",
    "hasRequired"
  ],
  "titleZh": "图片库控件",
  "descriptionZh": "图片库控件的值 schema。"
}

前言

图片库控件的值 schema。

基本信息

  • 英文名称Image Gallery Control
  • 中文名称:图片库控件
  • Schema IDbricks://controls/image-gallery
  • Schema 版本2.3
  • 类型object

属性

  • images (array)

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/image-gallery",
  "schemaVersion": "2.3",
  "title": "Image Gallery Control",
  "description": "Value schema for image-gallery control type",
  "type": "object",
  "properties": {
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Image settings",
        "properties": {
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "filename": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "full": {
            "type": "string"
          },
          "useDynamicData": {
            "type": "string"
          }
        },
        "descriptionZh": "图像设置。"
      }
    }
  },
  "controlProperties": [
    "type",
    "label",
    "tab",
    "hasRequired"
  ],
  "titleZh": "图片库控件",
  "descriptionZh": "图片库控件的值 schema。"
}

补充说明

更多细节可参考 Bricks 官方 Academy 文档