# 缺省页(Result)
任何内容区域(页面、区块、组件、单数据)没有内容/数据显示给用户时,就会出现空白提示。
# 示例
<template>
<dof-result class="result" :configuration="customSet">
<div slot="text">
<text class="content m-t-32">暂无服务地址</text>
<text class="desc m-t-32">1.请确认设备供电是否正常</text>
<text class="desc">2.请确认设备连接家庭WiFi正常</text>
</div>
</dof-result>
</template>
<style scoped>
.wrapper {
background-color: #fff;
}
.content {
font-family: PingFangSC-Regular;
font-size: 40px;
color: rgba(255, 255, 255, 0.8);
text-align: center;
line-height: 48px;
}
.desc {
font-family: PingFangSC-Regular;
font-size: 32px;
color: rgba(255, 255, 255, 0.4);
text-align: center;
line-height: 48px;
}
.m-t-32 {
margin-top: 32px;
}
@media screen and (weex-theme: colmo) {
.wrapper {
background-color: #151617;
}
}
</style>
<script>
import { DofResult } from 'dolphin-weex-ui'
export default {
components: { DofResult },
data: () => ({
type: 'colmo'
}),
beforeCreate() {
// this.$theme.setTheme('colmo')
},
created() {}
}
</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
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
点我扫二维码 查看demo