Bricks Schema 中文文档:对齐方式控件

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

📄 原始资料  |  展开查看原始 JSON(align-items.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/align-items",
  "schemaVersion": "2.3",
  "title": "Align Items Control",
  "description": "Value schema for align-items control type",
  "type": "string",
  "enum": [
    "flex-start",
    "flex-end",
    "center",
    "baseline",
    "stretch"
  ],
  "controlProperties": [
    "type",
    "label",
    "css",
    "hasRequired",
    "tab",
    "group",
    "inline",
    "placeholder"
  ],
  "titleZh": "对齐方式控件",
  "descriptionZh": "对齐方式控件的值 schema。"
}

前言

对齐方式控件的值 schema。

基本信息

  • 英文名称Align Items Control
  • 中文名称:对齐方式控件
  • Schema IDbricks://controls/align-items
  • Schema 版本2.3
  • 类型string

枚举值

  • flex-start
  • flex-end
  • center
  • baseline
  • stretch

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/align-items",
  "schemaVersion": "2.3",
  "title": "Align Items Control",
  "description": "Value schema for align-items control type",
  "type": "string",
  "enum": [
    "flex-start",
    "flex-end",
    "center",
    "baseline",
    "stretch"
  ],
  "controlProperties": [
    "type",
    "label",
    "css",
    "hasRequired",
    "tab",
    "group",
    "inline",
    "placeholder"
  ],
  "titleZh": "对齐方式控件",
  "descriptionZh": "对齐方式控件的值 schema。"
}

补充说明

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