Bricks Schema 中文文档:链接控件

📄 原始资料  |  展开查看原始 JSON(link.json){ “$schema”: “https://json-schema.org/draft/2020-12/schema”, “$id”: “bricks://controls/link”, “schemaVersion”: “2.3”, “title”: “Link Control”, “description”: “Link settings”, “controlProperties”: [ “type”, “label”, “placeholder”, “hasRequired”, “tab”, “grou…

📄 原始资料  |  展开查看原始 JSON(link.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/link",
  "schemaVersion": "2.3",
  "title": "Link Control",
  "description": "Link settings",
  "controlProperties": [
    "type",
    "label",
    "placeholder",
    "hasRequired",
    "tab",
    "group"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "postId": {
      "type": [
        "string",
        "integer"
      ]
    },
    "newTab": {
      "type": "boolean"
    },
    "rel": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "ariaLabel": {
      "type": "string"
    },
    "lightboxId": {
      "type": "string"
    },
    "lightboxType": {
      "type": "string"
    }
  },
  "titleZh": "链接控件",
  "descriptionZh": "链接设置。"
}

前言

链接设置。

基本信息

  • 英文名称Link Control
  • 中文名称:链接控件
  • Schema IDbricks://controls/link
  • Schema 版本2.3
  • 类型object

属性

  • type (string)
  • url (string)
  • postId (["string", "integer"])
  • newTab (boolean)
  • rel (string)
  • title (string)
  • ariaLabel (string)
  • lightboxId (string)
  • lightboxType (string)

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/link",
  "schemaVersion": "2.3",
  "title": "Link Control",
  "description": "Link settings",
  "controlProperties": [
    "type",
    "label",
    "placeholder",
    "hasRequired",
    "tab",
    "group"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "postId": {
      "type": [
        "string",
        "integer"
      ]
    },
    "newTab": {
      "type": "boolean"
    },
    "rel": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "ariaLabel": {
      "type": "string"
    },
    "lightboxId": {
      "type": "string"
    },
    "lightboxType": {
      "type": "string"
    }
  },
  "titleZh": "链接控件",
  "descriptionZh": "链接设置。"
}

补充说明

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