Skip to content

Card 卡片

基础用法

Card 组件由header、body和footer组成。header 和 footer是可选的,其内容取决于一个具名的 slot。

loading

简单卡片

只含内容区域

loading

阴影效果

通过 shadow 属性设置卡片阴影出现的时机。 该属性的值可以是: always、hover 或 never。

loading

Card API

Card Attributes

属性名说明类型默认值
shadow阴影出现时机'always' | 'hover' | 'never'hover
bodyStyle改变卡片中部的样式string | Array | Objectnull
bodyClass绑定到卡片中部的类stringnull

Card Slots

属性名说明类型默认值
header顶部插槽
default默认, 中部插槽
footer底部插槽