# 分页符(Indicator)
大小:16*2px;间距8px
连续滑动总长度不得大于184px(8页)
长度大于184px(8页),根据个数缩短单个滑条长度(双数),间距8px保持不变
蒙层样式
遮罩黑色 #0C0C0C 75%
# 示例
<template>
<div class="wrapper">
<dof-minibar title="8.4分页符"></dof-minibar>
<div class="title-box">
<text class="title-text">基础样式</text>
</div>
<div class="content-box">
<div class="indicator-box">
<div
:class="['indicator-item', i === 2 && 'isLast', i === 0 && 'active']"
v-for="(item, i) in 3"
:key="i"
></div>
</div>
<div class="indicator-box">
<div
:class="['indicator-item', 'opacity40' ,i === 2 && 'isLast', i === 0 && 'active']"
v-for="(item, i) in 3"
:key="i"
></div>
</div>
</div>
<div class="title-box">
<text class="title-text">示例</text>
</div>
<div style="height: 40px;"></div>
<dof-swiper :items="items0"> </dof-swiper>
</div>
</template>
<style scoped>
.wrapper {
background-color: #f9f9f9;
}
.title-box {
padding: 32px;
background-color: #e5e5e8;
}
.title-text {
font-family: PingFangSC-Medium;
font-size: 36px;
color: #000000;
font-weight: 500;
}
.content-box {
padding: 44px;
display: flex;
flex-direction: row;
}
.sample {
width: 456px;
justify-content: center;
}
.indicator-box {
display: flex;
flex: 1;
flex-direction: row;
justify-content: center;
align-items: center;
}
.indicator-item {
width: 8px;
height: 8px;
border-radius: 8px;
background-color: #a1a1a1;
margin-right: 12px;
}
.opacity40 {
opacity: 0.4;
}
.small-indicator {
width: 20px;
}
.isLast {
margin-right: 0;
}
.active {
/* background-color: #b35336; */
width: 40px;
}
@media screen and (weex-theme: colmo) {
.wrapper {
background-color: #151617;
}
}
</style>
<script>
import { DofMinibar, DofSwiper } from 'dolphin-weex-ui'
export default {
components: { DofMinibar, DofSwiper },
data: () => ({
items0: [
{
title: 'item1',
url: 'http://dolphin-weex-dev.msmartlife.cn/cdn/images/ui_library/swipe/IMG20200731-152510859.png'
},
{
title: 'item2',
url: 'http://dolphin-weex-dev.msmartlife.cn/cdn/images/ui_library/swipe/IMG20200731-152448695.png'
},
{
title: 'item3',
url: 'http://dolphin-weex-dev.msmartlife.cn/cdn/images/ui_library/swipe/IMG20200731-152514533.png'
}
]
}),
computed: {},
created() {},
mounted() {},
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
点我扫二维码 查看demo