# 加载(Spinner)
有两种样式。一种用于页面的加载中状态;另一种用于功能的加载状态。
# 示例
<template>
<div class="wrapper">
<dof-minibar title="8.8模态加载"></dof-minibar>
<div class="title-box">
<text class="title-text">基础样式</text>
</div>
<div class="spinner-box">
<div class="rect-box">
<dof-spinner type="colmo_rect"></dof-spinner>
<text class="rect-text">加载中</text>
</div>
<div class="rect-box" style="background-color: transparent; margin-left: 60px;">
<dof-spinner :styleConfig="{ width: '88px', height: '88px' }"></dof-spinner>
</div>
</div>
</div>
</template>
<style scoped>
.wrapper {
background-color: #f9f9f9;
}
.m-t-16 {
margin-top: 16px;
}
.title-box {
padding: 32px;
background-color: #e5e5e8;
}
.title-text {
font-family: PingFangSC-Medium;
font-size: 36px;
color: #000000;
font-weight: 500;
}
.spinner-box {
padding: 124px;
display: flex;
flex-direction: row;
}
.rect-box {
width: 192px;
height: 192px;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.rect-text {
font-family: PingFangSC-Regular;
font-size: 28px;
color: rgba(255, 255, 255, 0.8);
margin-top: 0px;
}
@media screen and (weex-theme: colmo) {
.wrapper {
background-color: #151617;
}
}
</style>
<script>
import { DofMinibar, DofSpinner } from 'dolphin-weex-ui'
export default {
components: { DofMinibar, DofSpinner },
data: () => ({}),
computed: {},
created() {},
methods: {}
}
</script>
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
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
# Attributes
参数 | 说明 | 类型 | 默认值 | 是否必须 |
---|---|---|---|---|
type | 颜色主题,可选值为: colmo colmo-rect black white | String | colmo | N |
styleConfig | 样式覆盖,可自定义样式,如:{ widht: '48px', height: '48px' } | Object | {} | N |
点我扫二维码 查看demo