A2Card
卡片容器组件,支持多种宽度规格。
属性
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
width | `xs | sm | md |
header | string | - | 头部标题(设置后自动显示 Document 图标) |
headerBgColor | string | #F8F8FB | 头部背景色 |
shadow | `always | hover | never` |
宽度规格
| 值 | 像素 |
|---|---|
xs | 300px |
sm | 400px |
md | 560px |
lg | 720px |
xl | 960px |
full | 100% |
基础示例
嵌套布局示例
JSON Schema
json
{
"id": "cardId",
"type": "a2-card",
"props": {
"width": "xs",
"header": "卡片标题",
"shadow": "hover"
},
"children": []
}