Skip to content
目录

DynamicCard 卡片组件

何时使用

用于让卡片动画的场景

代码演示

tsx
<script setup>
import { DynamicCard } from '@xiaomh/vue3-alan-vite-component';
</script>

<template>
 <dynamic-card :cardList="[
  {
    text:'哈喽哈喽哈喽哈喽1'
  },
  {
    text:'哈喽哈喽哈喽哈喽2'
  },
  {
    text:'哈喽哈喽哈喽哈喽21'
  },
  {
    text:'哈喽哈喽哈喽哈喽31'
  },
]"></dynamic-card>
</template>

<style></style>

<script setup>
import { DynamicCard } from '@xiaomh/vue3-alan-vite-component';
</script>

<template>
 <dynamic-card :cardList="[
  {
    text:'哈喽哈喽哈喽哈喽1'
  },
  {
    text:'哈喽哈喽哈喽哈喽2'
  },
  {
    text:'哈喽哈喽哈喽哈喽21'
  },
  {
    text:'哈喽哈喽哈喽哈喽31'
  },
]"></dynamic-card>
</template>

<style></style>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

API

属性说明

属性说明类型默认值版本
cardList卡片listArray[]1.0.27
shape卡片排序 0:列表 1:乱序扇形 2:正序扇形number01.0.25
isKeyboardControl是否需要键盘控制 开启后可以 通过 上下左右箭头控制booleanfalse1.0.25

cardList 属性说明

属性说明类型默认值版本
text卡片文本string-1.0.27

Welcome to the site