-
Notifications
You must be signed in to change notification settings - Fork 14
/
statusBar.ts
81 lines (71 loc) · 1.5 KB
/
statusBar.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { CommonStyleType } from './common.js';
/**
* # 状态条选项
* @name 状态条选项
*/
export interface StatusBarOptions {
/**
* 是否禁用状态条, 为true时将不会创建状态条
* @default false
*/
disable?: boolean;
/**
* 加载时的提示文本
* @default 加载中
*/
loadingMessage?: string;
/**
* 模型加载成功时提示的文本信息
* @default 加载成功
*/
loadSuccessMessage?: string;
/**
* 模型加载失败时提示的文本信息
* @default 加载失败
*/
loadFailMessage?: string;
/**
* 加载失败hover事件时模型重新加载文本信息
* @default 重新加载
*/
reloadMessage?: string;
/**
* 模型休息状态时提示的文本信息
* @default 看板娘休息中
*/
restMessage?: string;
/**
* 模型切换时提示的文本信息
* @default 正在切换
*/
switchingMessage?: string;
/**
* 模型休息时提示持续时长, 单位ms
* @default 8000
*/
restMessageDuration?: number;
/**
* 自定义模型加载时的icon
* @default icon-loading
*/
loadingIcon?: string;
/**
* 状态条弹入弹出时过渡动画时长, 单位ms
* @default 800
*/
transitionTime?: number;
/**
* 加载异常时展示的背景色
*/
errorColor?: string;
/**
* 配置状态条样式
* @valueType object
*/
style?: CommonStyleType;
/**
* 移动端下状态条样式
* @valueType object
*/
mobileStyle?: CommonStyleType;
}