基础卡片容器组件,支持标题、描述、内容和页脚区域。
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
title | string | - | 卡片标题 |
description | string | - | 卡片描述 |
class | HTMLAttributes['class'] | - | 卡片容器 CSS 类 |
headerClass | HTMLAttributes['class'] | - | 卡片头部 CSS 类 |
contentClass | HTMLAttributes['class'] | - | 卡片内容 CSS 类 |
footerClass | HTMLAttributes['class'] | - | 卡片页脚 CSS 类 |
| 名称 | 说明 |
|---|---|
header | 卡片头部(会覆盖 title 和 description) |
default | 卡片内容 |
footer | 卡片页脚 |
header slot,会覆盖 title 和 description propsclass 设置固定宽度