slide-select-header.vue
764 Bytes
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
<template>
<div class="select-header">
<div class="title">{{title}}</div>
<a class="btn-sure" @click="selected">确定</a>
</div>
</template>
<script>
export default {
name: 'slide-select-header',
props: ['title'],
methods: {
selected() {
this.$emit('selected');
}
}
};
</script>
<style>
.select-header {
width: 100%;
height: 80px;
line-height: 80px;
border-bottom: 1px solid #e0e0e0;
font-size: 32px;
background-color: #000;
.title {
float: left;
padding-left: 25px;
color: #fff;
}
.btn-sure {
float: right;
display: block;
width: 100px;
color: #4a90e2;
text-align: center;
}
}
</style>