前言
数值控件类型的值 schema。
基本信息
- 英文名称:
Number Control - 中文名称:数值控件
- Schema ID:
bricks://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 文档。