📄 原始资料 (已截断) | 展开查看原始 JSON(facebook-page.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "bricks://elements/facebook-page",
"schemaVersion": "2.3",
"type": "object",
"title": "Facebook Page",
"description": "Schema for Bricks Facebook Page element",
"metadata": {
"name": "facebook-page",
"category": "general",
"tag": "div",
"nestable": false
},
"settings": {
"href": {
"label": "Facebook page URL",
"default": "https://facebook.com/facebook",
"valueSchema": {
"type": "string"
},
"controlType": "text",
"labelZh": "Facebook 页面 URL"
},
"height": {
"label": "Height",
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "高度"
},
"width": {
"label": "Width",
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "宽度"
},
"tabs": {
"label": "Tabs",
"multiple": true,
"options": {
"timeline": "Timeline",
"events": "Events",
"messages": "Messages",
"timelineZh": "时间线",
"eventsZh": "活动",
"messagesZh": "消息"
},
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Single selection",
"descriptionZh": "单选。"
},
{
"type": "array",
"items": {
"type": "string"
},
"description": "Multiple selection",
"descriptionZh": "多选。"
}
]
},
"controlType": "select",
"labelZh": "标签页"
},
"hideCover": {
"label": "Hide cover",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "隐藏封面"
},
"profilePhotos": {
"label": "Show friends\\",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "显示好友头像"
},
"hideCta": {
"label": "Hide CTA button",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"labelZh": "隐藏 CTA 按钮"
},
"smallHeader": {
"label": "Small header",
"valueSchema": {
"type": "boolean"
},
"controlType": "checkbox",
"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": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "最小宽度"
},
"_widthMax": {
"label": "Max. width",
"css": [
{
"property": "max-width"
}
],
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "最大宽度"
},
"_height": {
"label": "Height",
"css": [
{
"property": "height"
}
],
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "高度"
},
"_heightMin": {
"label": "Min. height",
"css": [
{
"property": "min-height"
}
],
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"10px\"、\"50%\")。"
},
{
"type": "number"
}
]
},
"controlType": "number",
"labelZh": "最小高度"
},
"_heightMax": {
"label": "Max. height",
"css": [
{
"property": "max-height"
}
],
"valueSchema": {
"oneOf": [
{
"type": "string",
"description": "Value with unit (e.g., \"10px\", \"50%\")",
"descriptionZh": "带单位的值(例如 \"1
... (内容过长已截断,完整 JSON 见原始文件)