Card 卡片
基本用法
控制卡片阴影大小
何时显示卡片阴影
自定义内容区的样式,显示多种风格的卡片
API
Card Props
| 参数名 | 说明 | 类型 | 可选值 | 默认值 | 必填 |
|---|---|---|---|---|---|
| title | 卡片标题(可通过 slot="header" 自定义) | string | |||
| bodyStyle | 自定义卡片内容区的样式 | object | {} | ||
| shadowTrigger | 何时显示卡片阴影 | string | alway/hover/never | alway | |
| shadowSize | 卡片阴影的大小 | string | small/medium/large | small |
Card Slots
| 插槽名 | 说明 | 子标签 |
|---|---|---|
| default | 默认插槽 | |
| header | 自定义头部 | |
| footer | 自定义尾部 |
