Bricks Schema 中文文档:间距控件

📄 原始资料  |  展开查看原始 JSON(spacing.json){ “$schema”: “https://json-schema.org/draft/2020-12/schema”, “$id”: “bricks://controls/spacing”, “schemaVersion”: “2.3”, “title”: “Spacing Control”, “description”: “Spacing value with directional properties”, “controlProperties”: [ “type”, “label”, “grou…

📄 原始资料  |  展开查看原始 JSON(spacing.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/spacing",
  "schemaVersion": "2.3",
  "title": "Spacing Control",
  "description": "Spacing value with directional properties",
  "controlProperties": [
    "type",
    "label",
    "group",
    "css",
    "tab",
    "deprecated",
    "hasRequired"
  ],
  "type": "object",
  "properties": {
    "top": {
      "type": "string",
      "description": "Top spacing value with unit",
      "descriptionZh": "顶部间距值(带单位)。"
    },
    "right": {
      "type": "string",
      "description": "Right spacing value with unit",
      "descriptionZh": "右侧间距值(带单位)。"
    },
    "bottom": {
      "type": "string",
      "description": "Bottom spacing value with unit",
      "descriptionZh": "底部间距值(带单位)。"
    },
    "left": {
      "type": "string",
      "description": "Left spacing value with unit",
      "descriptionZh": "左侧间距值(带单位)。"
    }
  },
  "additionalProperties": false,
  "titleZh": "间距控件",
  "descriptionZh": "带方向属性的间距值。"
}

前言

带方向属性的间距值。

基本信息

  • 英文名称Spacing Control
  • 中文名称:间距控件
  • Schema IDbricks://controls/spacing
  • Schema 版本2.3
  • 类型object

属性

  • top (string):顶部间距值(带单位)。
  • right (string):右侧间距值(带单位)。
  • bottom (string):底部间距值(带单位)。
  • left (string):左侧间距值(带单位)。

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/spacing",
  "schemaVersion": "2.3",
  "title": "Spacing Control",
  "description": "Spacing value with directional properties",
  "controlProperties": [
    "type",
    "label",
    "group",
    "css",
    "tab",
    "deprecated",
    "hasRequired"
  ],
  "type": "object",
  "properties": {
    "top": {
      "type": "string",
      "description": "Top spacing value with unit",
      "descriptionZh": "顶部间距值(带单位)。"
    },
    "right": {
      "type": "string",
      "description": "Right spacing value with unit",
      "descriptionZh": "右侧间距值(带单位)。"
    },
    "bottom": {
      "type": "string",
      "description": "Bottom spacing value with unit",
      "descriptionZh": "底部间距值(带单位)。"
    },
    "left": {
      "type": "string",
      "description": "Left spacing value with unit",
      "descriptionZh": "左侧间距值(带单位)。"
    }
  },
  "additionalProperties": false,
  "titleZh": "间距控件",
  "descriptionZh": "带方向属性的间距值。"
}

补充说明

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