Skip to content

CardMeta 卡片元信息 ​

卡片元信息组件,作为独立顶层组件存在(不挂在 Card 命名空间下)。

何时使用 ​

  • 卡片需要展示头像 + 标题 + 描述的标准元信息布局。
  • 列表项、详情卡片的头部信息块。

基本使用 ​

title / description 是字符串 prop,也可以用同名 slot 完全自定义。

带头像 ​

avatar slot 用于左侧头像。

title / description slot ​

需要标题旁带图标或描述里带富文本时用 slot。

CardMeta 参数 ​

参数类型默认说明
titlestring''标题文字(slot 优先)
descriptionstring''描述文字(slot 优先)

CardMeta 插槽 ​

插槽名说明
avatar左侧头像区
title标题区
description描述区

Released under the MIT License.