day-choose.vue
1.47 KB
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
<!--求购时限选择-->
<template>
<div class="customSelectWrapper">
<div class="customSelectTextWrapper">
<span class="leftText">求购期限:</span>
<div class="rightWrapper">
<span class="rightText">{{value}}</span>
<i class="cubeic-arrow" ></i>
</div>
</div>
<Select
v-model="value"
:title="title"
:options="options"
@change="change"
class="customSelect"
/>
</div>
</template>
<script>
import {Select} from 'cube-ui';
export default {
name: 'DayChoose',
components: {Select},
data() {
return {
options: ['1天', '3天', '7天', '15天', '30天'],
value: '7天',
title: '选择求购时限',
};
},
methods: {
change(value, index, text) {
console.log('change', value, index, text);
}
}
};
</script>
<style lang="scss" scoped>
.customSelectWrapper {
position: relative;
height: 60px;
padding-top: 10px;
}
.customSelectTextWrapper {
position: absolute;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.leftText {
font-family: PingFang-SC-Regular;
font-size: 14px;
color: #000000;
letter-spacing: 0;
}
.rightWrapper {
}
.rightText {
font-family: PingFang-SC-Regular;
font-size: 14px;
color: #000000;
letter-spacing: 0;
}
.customSelect {
position: relative;
opacity: 0 !important;
}
</style>