Bricks Schema 中文文档:SVG 控件

📄 原始资料  |  展开查看原始 JSON(svg.json){ “$schema”: “https://json-schema.org/draft/2020-12/schema”, “$id”: “bricks://controls/svg”, “schemaVersion”: “2.3”, “title”: “Svg Control”, “description”: “Value schema for svg control type”, “type”: “object”, “properties”: { “id”: { “type”: [ “string”, “in…

📄 原始资料  |  展开查看原始 JSON(svg.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/svg",
  "schemaVersion": "2.3",
  "title": "Svg Control",
  "description": "Value schema for svg control type",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "integer"
      ]
    },
    "url": {
      "type": "string"
    },
    "library": {
      "type": "string"
    }
  },
  "controlProperties": [
    "type",
    "hasRequired"
  ],
  "titleZh": "SVG 控件",
  "descriptionZh": "SVG 控件的值 schema。"
}

前言

SVG 控件的值 schema。

基本信息

  • 英文名称Svg Control
  • 中文名称:SVG 控件
  • Schema IDbricks://controls/svg
  • Schema 版本2.3
  • 类型object

属性

  • id (["string", "integer"])
  • url (string)
  • library (string)

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/svg",
  "schemaVersion": "2.3",
  "title": "Svg Control",
  "description": "Value schema for svg control type",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "integer"
      ]
    },
    "url": {
      "type": "string"
    },
    "library": {
      "type": "string"
    }
  },
  "controlProperties": [
    "type",
    "hasRequired"
  ],
  "titleZh": "SVG 控件",
  "descriptionZh": "SVG 控件的值 schema。"
}

补充说明

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