加载提示框 | Indicator

Indicator

加载提示框,支持自定义文本和加载图标。

引入

import { Indicator } from 'mint-ui';

例子

当需要显示加载提示框时,调用 open 方法

Indicator.open(

在加载图标下方显示文本

Indicator.open('加载中...'

也可以在调用时传入一个对象

Indicator.open{ text: '加载中...', spinnerType: 'fading-circle' }

调用 close 方法将其关闭

Indicator.close(

API

参数说明类型可选值默认值
text文本内容String
spinnerType加载图标的类型String'snake''fading-circle''double-bounce''triple-bounce''snake'