Skip to content

Loading 加载

三点弹性加载动画,默认绝对定位铺满父容器,常用于覆盖在内容区域上表示加载中。

基础用法

查看代码
vue
<template>
    <div
        style="
            position: relative;
            height: 140px;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
        "
    >
        <Loading :visible="true" />
    </div>
</template>

<script setup lang="ts">
import { Loading } from "@a-drowned-fish/rox-v";
</script>

Props

参数说明类型默认值
visible是否显示booleanfalse
bg遮罩背景色string"transparent"
dotColor圆点颜色string"#1a171b"
dotSize圆点尺寸string"8px"
dotGap圆点间距string"4px"
amplitude弹跳幅度string"15px"

说明

组件采用 position: absolute 铺满父级,请将其放置在具有 position: relative 且设定了尺寸的容器内。

基于 MIT 协议开源