# Module Spec：vab-colorful-card（渐变卡片）

module:
  id: vab-colorful-card
  name: VabColorfulCard（渐变卡片）
  type: ui
  entrypoints:
    - library/components/VabColorfulCard/index.vue

public_api:
  concept:
    - "基于 el-card 的渐变背景卡片：支持 header 标题与右上角 icon"

dependency_closure:
  runtime:
    - "Element Plus：el-card"
    - "VabIcon（可选）"

acceptance:
  - "传入 colorFrom/colorTo 时背景为 linear-gradient"
  - "传入 icon 时显示 vab-icon"

pitfalls:
  - "colorFrom/colorTo 需为合法 CSS color 字符串"
