Bricks Schema 中文文档:数值控件

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

📄 原始资料  |  展开查看原始 JSON(number.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/number",
  "schemaVersion": "2.3",
  "title": "Number Control",
  "description": "Value schema for number control type",
  "oneOf": [
    {
      "type": "string",
      "description": "Value with unit (e.g., \"10px\", \"50%\")",
      "descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
    },
    {
      "type": "number"
    }
  ],
  "controlProperties": [
    "type",
    "label",
    "placeholder",
    "group",
    "default",
    "units",
    "css",
    "hasRequired",
    "tab",
    "inline",
    "deprecated"
  ],
  "titleZh": "数值控件",
  "descriptionZh": "数值控件类型的值 schema。"
}

前言

数值控件类型的值 schema。

基本信息

  • 英文名称Number Control
  • 中文名称:数值控件
  • Schema IDbricks://controls/number
  • Schema 版本2.3

Schema 定义

完整 JSON 定义

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://controls/number",
  "schemaVersion": "2.3",
  "title": "Number Control",
  "description": "Value schema for number control type",
  "oneOf": [
    {
      "type": "string",
      "description": "Value with unit (e.g., \"10px\", \"50%\")",
      "descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
    },
    {
      "type": "number"
    }
  ],
  "controlProperties": [
    "type",
    "label",
    "placeholder",
    "group",
    "default",
    "units",
    "css",
    "hasRequired",
    "tab",
    "inline",
    "deprecated"
  ],
  "titleZh": "数值控件",
  "descriptionZh": "数值控件类型的值 schema。"
}

补充说明

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