Skip to content

卡片 Card ​

通用卡片容器,支持标题、头部/底部插槽和阴影控制。

Props

属性类型默认值说明
titlestring''卡片标题(也可用 header 插槽)
shadow'always' | 'hover' | 'never''always'阴影模式

Slots

插槽说明
默认卡片内容
header自定义头部
footer自定义底部

示例

vue
<template>
  <Card title="用户信息" shadow="hover">
    卡片内容
    <template #footer>底部操作区</template>
  </Card>
</template>

Released under the MIT License.