Skip to content
On this page

loading1 加载

加载组件一般用于页面加载完成之前展示。

基础用法

loading
<template>
  <FLoading2 width="100px" height="100px" text="loading" :duration="2"></FLoading2>
</template>

参数

参数名说明类型可选值默认值
width组件宽度string-100px
height组件高度string-100px
color加载组件的颜色,分别为背景颜色,加载组件的主颜色,文本颜色string[]-['#d1d5db', '#3b82f6', '#3b82f6']
text展示文本string-
duration动画时长(秒)number-0.8