Bricks Schema 中文文档:Bricks 断点

标签TAGS: 

📄 原始资料  |  展开查看原始 JSON(breakpoints.json){ “$schema”: “https://json-schema.org/draft/2020-12/schema”, “$id”: “bricks://global/breakpoints”, “schemaVersion”: “2.3”, “title”: “Bricks Breakpoints”, “type”: “array”, “items”: { “type”: “object”, “properties”: { “key”: { “type”: “string” }, “labe…

📄 原始资料  |  展开查看原始 JSON(breakpoints.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://global/breakpoints",
  "schemaVersion": "2.3",
  "title": "Bricks Breakpoints",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "key": {
        "type": "string"
      },
      "label": {
        "type": "string"
      },
      "width": {
        "type": "integer"
      },
      "widthBuilder": {
        "type": "integer"
      },
      "icon": {
        "type": "string"
      },
      "base": {
        "type": "boolean"
      },
      "custom": {
        "type": "boolean"
      },
      "edited": {
        "type": "boolean"
      },
      "paused": {
        "type": "boolean"
      }
    },
    "required": [
      "key",
      "label",
      "width",
      "icon"
    ],
    "additionalProperties": false
  },
  "titleZh": "Bricks 断点"
}

基本信息

  • 英文名称Bricks Breakpoints
  • 中文名称:Bricks 断点
  • Schema IDbricks://global/breakpoints
  • Schema 版本2.3
  • 类型array

条目属性

  • key (string)
  • label (string)
  • width (integer)
  • widthBuilder (integer)
  • icon (string)
  • base (boolean)
  • custom (boolean)
  • edited (boolean)
  • paused (boolean)

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://global/breakpoints",
  "schemaVersion": "2.3",
  "title": "Bricks Breakpoints",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "key": {
        "type": "string"
      },
      "label": {
        "type": "string"
      },
      "width": {
        "type": "integer"
      },
      "widthBuilder": {
        "type": "integer"
      },
      "icon": {
        "type": "string"
      },
      "base": {
        "type": "boolean"
      },
      "custom": {
        "type": "boolean"
      },
      "edited": {
        "type": "boolean"
      },
      "paused": {
        "type": "boolean"
      }
    },
    "required": [
      "key",
      "label",
      "width",
      "icon"
    ],
    "additionalProperties": false
  },
  "titleZh": "Bricks 断点"
}

补充说明

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