# 卡片-数据卡片(Card-Number)
首页日志入口缩略展示
# 示例
<template>
<div class="wrapper">
<dof-minibar title="5.7卡片-数据卡片"></dof-minibar>
<scroller>
<div class="title-box">
<text class="title-text">大数字样式</text>
<text class="title-desc">常用于主要功能操作</text>
</div>
<div class="content">
<dof-card class="m-b-16">
<dof-step-action vertical="middle" v-model="value" :min="10" :max="35">
<div class="slider-middle-box">
<div class="slider-middle-num-box">
<text class="slider-middle-num">{{ value }}</text>
<text class="slider-middle-desc">℃</text>
</div>
<text class="slider-middle-bottom">设置温度</text>
</div>
</dof-step-action>
<dof-slider v-model="value" :min="10" :max="80"> </dof-slider>
</dof-card>
<dof-card class="m-b-16">
<dof-step-action vertical="middle" v-model="value" :min="10" :max="35">
<div class="slider-middle-box">
<div class="slider-middle-num-box">
<text class="slider-middle-num">{{ value }}</text>
<text class="slider-middle-desc">℃</text>
</div>
<text class="slider-middle-bottom">设置温度</text>
</div>
</dof-step-action>
<dof-slider v-model="value" :min="10" :max="80" :gradientBarConfig="gradientBarConfig"> </dof-slider>
</dof-card>
</div>
<div class="title-box">
<text class="title-text">小数字样式</text>
<text class="title-desc">常用于日志等入口型数据展示</text>
</div>
<div class="content">
<dof-numcard-row class="m-b-16">
<dof-numcard-col>
<div class="num-box">
<div class="num-content">
<text class="num-val">0</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
<dof-numcard-col>
<div class="num-box">
<div class="num-content">
<text class="num-val">1213</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
</dof-numcard-row>
<dof-numcard-row class="m-b-16">
<dof-numcard-col v-for="(item, i) in 3" :key="i">
<div class="num-box">
<div class="num-content">
<text class="num-val">0</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
</dof-numcard-row>
<dof-numcard-row :isShowBorderBottom="true">
<dof-numcard-col>
<div class="num-box">
<div class="num-content">
<text class="num-val">0</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
<dof-numcard-col>
<div class="num-box">
<div class="num-content">
<text class="num-val">1213</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
</dof-numcard-row>
<dof-numcard-row class="m-b-16">
<dof-numcard-col>
<div class="num-box">
<div class="num-content">
<text class="num-val">0</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
<dof-numcard-col>
<div class="num-box">
<div class="num-content">
<text class="num-val">正常</text>
</div>
<text class="num-text m-t-13">冰箱健康</text>
</div>
</dof-numcard-col>
</dof-numcard-row>
<dof-numcard-row :isShowBorderBottom="true">
<dof-numcard-col v-for="(item, i) in 3" :key="i">
<div class="num-box">
<div class="num-content">
<text class="num-val">0</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
</dof-numcard-row>
<dof-numcard-row class="m-b-16">
<dof-numcard-col v-for="(item, i) in 3" :key="i">
<div class="num-box">
<div class="num-content">
<text class="num-val">0</text>
<text class="num-text m-l-10">次</text>
</div>
<text class="num-text m-t-13">昨日开关门次数</text>
</div>
</dof-numcard-col>
</dof-numcard-row>
</div>
</scroller>
</div>
</template>
<style scoped>
.wrapper {
background-color: #f9f9f9;
}
.content {
padding: 16px 30px;
}
.m-b-16 {
margin-bottom: 16px;
}
.m-l-10 {
margin-left: 10px;
}
.m-t-13 {
margin-top: 13px;
}
.title-box {
padding: 32px;
background-color: #e5e5e8;
}
.title-text {
font-family: PingFangSC-Medium;
font-size: 36px;
color: #000000;
font-weight: 500;
}
.title-desc {
font-family: PingFangSC-Regular;
font-size: 26px;
color: #666666;
margin-top: 8px;
}
.slider-middle-box {
display: flex;
flex-direction: column;
justify-content: center;
}
.slider-middle-num-box {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
}
.slider-middle-num {
font-size: 84px;
color: rgba(255, 255, 255, 0.8);
}
.slider-middle-bottom {
font-family: PingFangSC-Regular;
font-size: 24px;
color: rgba(255, 255, 255, 0.4);
text-align: center;
}
.slider-middle-desc {
font-size: 34px;
color: rgba(255, 255, 255, 0.8);
}
.num-box {
display: flex;
height: 168px;
flex-direction: column;
justify-content: center;
align-items: center;
}
.num-val {
font-family: COLMO-Mono-Regular;
font-size: 44px;
color: rgba(255, 255, 255, 0.8);
}
.num-text {
font-family: PingFangSC-Regular;
font-size: 24px;
color: rgba(255, 255, 255, 0.4);
}
.num-content {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: center;
}
@media screen and (weex-theme: colmo) {
.wrapper {
background-color: #151617;
}
}
</style>
<script>
import {
DofMinibar,
DofSlider,
DofSliderScale,
DofCard,
DofStepAction,
DofNumcardRow,
DofNumcardCol
} from 'dolphin-weex-ui'
export default {
components: { DofMinibar, DofSlider, DofCard, DofStepAction, DofNumcardRow, DofNumcardCol },
data: () => ({
value: 60,
gradientBarConfig: { start: '#222324', end: '#fff' }
}),
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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# Api
# dof-numcard-row props
Prop | Type | Required | Default | Description |
---|---|---|---|---|
isShowBorderRight | Boolean | false | true | 是否展示右边框 |
isShowBorderBottom | Boolean | false | false | 是否展示下边框 |
isShowDelta | Boolean | false | true | 是否展示三角 |
点我扫二维码 查看demo