Skip to content

HoloCard 全息卡片

全息卡片组件提供了具有3D视觉效果和动态光影变化的信息展示容器,适合展示重要信息或特殊内容。

基本用法

全息投影
这是一个全息卡片组件,具有3D视觉效果和动态光影变化。
vue
<template>
  <cyber-holo-card title="全息投影">
    这是一个全息卡片组件,具有3D视觉效果和动态光影变化。
  </cyber-holo-card>
</template>

主题

霓虹主题
霓虹主题的卡片组件。
全息主题
全息主题的卡片组件。
终端主题
终端主题的卡片组件。
vue
<template>
  <cyber-holo-card title="霓虹主题" theme="neon">
    <div class="card-body">霓虹主题的卡片组件。</div>
  </cyber-holo-card>
  <cyber-holo-card title="全息主题" theme="hologram">
    <div class="card-body">全息主题的卡片组件。</div>
  </cyber-holo-card>
  <cyber-holo-card title="终端主题" theme="terminal">
    <div class="card-body">终端主题的卡片组件。</div>
  </cyber-holo-card>
</template>

效果

默认效果
默认效果的卡片组件。
扫描效果
扫描效果的卡片组件。
故障效果
故障效果的卡片组件。
脉冲效果
脉冲效果的卡片组件。
vue
<template>
  <cyber-holo-card title="默认效果" >
    <div class="card-body">默认效果的卡片组件。</div>
  </cyber-holo-card>
  <cyber-holo-card title="扫描效果" effect="scan">
    <div class="card-body">扫描效果的卡片组件。</div>
  </cyber-holo-card>
  <cyber-holo-card title="故障效果" effect="glitch" >
    <div class="card-body">故障效果的卡片组件。</div>
  </cyber-holo-card>
  <cyber-holo-card title="脉冲效果" effect="pulse" >
    <div class="card-body">脉冲效果的卡片组件。</div>
  </cyber-holo-card>
</template>

自定义内容

自定义标题
自定义内容,使用插槽title自定义标题,使用插槽footer自定义卡片底部
vue
<template>
  <cyber-holo-card>
    <template #title>
      <div class="custom-title">
        <icon-component />
        自定义标题
      </div>
    </template>
    <div class="custom-body">自定义内容</div>
    <template #footer>
      <div class="custom-footer">
        <div>自定义底部</div>
        <div>自定义底部</div>
      </div>
    </template>
  </cyber-holo-card>
</template>

属性

属性名说明类型可选值默认值
title卡片标题string
theme卡片主题stringneon / hologram / terminalneon
effect卡片效果stringdefault / scan / glitch / pulsedefault
depth3D效果深度number5
interactive是否启用交互效果booleantrue
bordered是否显示边框booleantrue
shadow是否显示阴影booleantrue
loading是否显示加载状态booleanfalse

插槽

插槽名说明
default卡片内容
title卡片标题
footer卡片底部

事件

事件名说明回调参数
click卡片点击事件event: Event

Relcased under the Mit Lincense.