📄 原始资料 (已截断) | 展开查看原始 JSON(post-taxonomy.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "bricks://elements/post-taxonomy",
"schemaVersion": "2.3",
"type": "object",
"title": "Taxonomy",
"description": "Schema for Bricks Taxonomy element",
"metadata": {
"name": "post-taxonomy",
"category": "single",
"tag": "div",
"nestable": false
},
"settings": {
"taxonomy": {
"label": "Taxonomy",
"default": "post_tag",
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "分类法"
},
"linkDisable": {
"label": "Disable link",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "禁用链接"
},
"separator": {
"label": "Separator",
"valueSchema": {
"type": "string"
},
"controlType": "text",
"labelZh": "分隔符"
},
"orderby": {
"label": "Order by",
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "排序方式"
},
"order": {
"label": "Order",
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "顺序"
},
"size": {
"label": "Size",
"options": {
"sm": "Small",
"md": "Medium",
"lg": "Large",
"xl": "Extra large",
"smZh": "中等",
"mdZh": "超小",
"lgZh": "大",
"xlZh": "超大"
},
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "尺寸"
},
"style": {
"label": "Style",
"default": "dark",
"options": {
"primary": "Primary",
"secondary": "Secondary",
"light": "Light",
"dark": "Dark",
"muted": "Muted",
"info": "Info",
"success": "Success",
"warning": "Warning",
"danger": "Danger",
"primaryZh": "主要",
"secondaryZh": "次要",
"lightZh": "浅色",
"darkZh": "深色",
"mutedZh": "静默",
"infoZh": "信息",
"successZh": "成功",
"warningZh": "警告",
"dangerZh": "危险"
},
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "样式"
},
"gap": {
"label": "Spacing",
"units": true,
"css": [
{
"property": "gap"
}
],
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "间距"
},
"icon": {
"label": "Icon",
"valueSchema": {
"type": "object",
"description": "Icon settings",
"properties": {
"library": {
"type": "string"
},
"icon": {
"type": "string"
},
"svg": {
"type": "object"
}
},
"descriptionZh": "图标设置。"
},
"controlType": "icon",
"labelZh": "图标"
},
"_content": {
"label": "Content",
"css": [
{
"property": "content",
"value": "%s"
}
],
"valueSchema": {
"type": "string"
},
"controlType": "text",
"labelZh": "内容"
},
"_margin": {
"label": "Margin",
"valueSchema": {
"type": "object",
"description": "Spacing value with directional properties",
"properties": {
"top": {
"type": "string",
"description": "Top spacing value with unit",
"descriptionZh": "顶部间距值(带单位)。"
},
"right": {
"type": "string",
"description": "Right spacing value with unit",
"descriptionZh": "右侧间距值(带单位)。"
},
"bottom": {
"type": "string",
"description": "Bottom spacing value with unit",
"descriptionZh": "底部间距值(带单位)。"
},
"left": {
"type": "string",
"description": "Left spacing value with unit",
"descriptionZh": "左侧间距值(带单位)。"
}
},
"additionalProperties": false,
"descriptionZh": "带方向属性的间距值。"
},
"css": [
{
"property": "margin"
}
],
"controlType": "spacing",
"labelZh": "外边距"
},
"_padding": {
"label": "Padding",
"valueSchema": {
"type": "object",
"description": "Spacing value with directional properties",
"properties": {
"top": {
"type": "string",
"description": "Top spacing value with unit",
"descriptionZh": "顶部间距值(带单位)。"
},
"right": {
"type": "string",
"description": "Right spacing value with unit",
"descriptionZh": "右侧间距值(带单位)。"
},
"bottom": {
"type": "string",
"description": "Bottom spacing value with unit",
"descriptionZh": "底部间距值(带单位)。"
},
"left": {
"type": "string",
"description": "Left spacing value with unit",
"descriptionZh": "左侧间距值(带单位)。"
}
},
"additionalProperties": false,
"descriptionZh": "带方向属性的间距值。"
},
"css": [
{
"property": "padding"
}
],
"controlType": "spacing",
"labelZh": "内边距"
},
"_width": {
"label": "Width",
"css": [
{
"property": "width"
}
],
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "宽度"
},
"_widthMin": {
"label": "Min. width",
"css": [
{
"property": "min-width"
}
],
"valueSchema": {
... (内容过长已截断,完整 JSON 见原始文件)