# 5.8 卡片项(Card Item)
卡片项组件,用于卡片组中的单个卡片
# 基础用法
<template>
<dof-card-item>卡片内容</dof-card-item>
</template>
1
2
3
2
3
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
needDarkMode | Boolean | N | false | 是否启用内置暗黑适配 |
borderColor | String | N | '' | 边框 / 分隔线颜色 |
设置 :need-dark-mode="true" 可启用内置暗黑配色,主题初始化与构建配置见 接入说明。
颜色属性为空时使用内置配色;业务显式颜色和样式覆盖优先于默认配色,关闭暗黑适配后仍有效。
# Slots
| 插槽名 | 说明 |
|---|---|
| default | 卡片项内容 |