Appearance
DigitalScroll 数字滚动组件
何时使用
按钮用于让数字滚动的场景
代码演示
tsx
<script setup>
import { CodeBackgroundWall } from '@xiaomh/vue3-alan-vite-component';
</script>
<template>
<code-background-wall></code-backgroundall>
</template>
<style></style>
<script setup>
import { CodeBackgroundWall } from '@xiaomh/vue3-alan-vite-component';
</script>
<template>
<code-background-wall></code-backgroundall>
</template>
<style></style>
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
API
属性说明
属性 | 说明 | 类型 | 默认值 | 版本 |
---|---|---|---|---|
width | 宽度 | number | 300 | 1.0.17 |
height | 高度 | number | 300 | 1.0.17 |
step | 步长 控制速度 | number | 0.02 | 1.0.17 |
color | 颜色 | string | green | 1.0.17 |