blob: 98e1d6e4f276a54ccfaf35839762546e282e4312 (
plain)
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
|
<template>
<div class="head">
<div class="target-select">
<span style="font-size: 14px;float: left;padding-top: 1%">系统介绍页面</span>
</div>
<div class="input">
<el-input v-model="country_name" placeholder="查询" suffix icon="">
<template v-slot:suffix>
<div class="icon-group">
<img src="../../../img/inputl.png" alt="**">
<img src="../../../img/inputIcon.png" alt="*" @click="query">
</div>
</template>
</el-input>
</div>
</div>
</template>
<script>
export default {
name: 'Header',
props: [],
data() {
return {
country_name: ''
}
},
watch: {},
methods: {
// 新增
add() {
this.$emit('add')
},
// 查询
query() {
let params = {}
if (this.country_name !== '') {
params.country_name = this.country_name
}
this.$emit('query', params)
}
}
}
</script>
<style lang="less" scoped>
.head{
width: 95%;
height: 7%;
margin-top: 1%;
margin-left: 2.5%;
text-align: right;
.input{
display: inline-block;
height: 60%;
width: 10%;
margin-left: 0.5%;
.el-input::placeholder {
width: auto;
}
.icon-group {
display: flex; /* 设置容器为 Flexbox 容器 */
align-items: center; /* 垂直居中图片 */
gap: 5px; /* 图片和文字之间的间距,可以根据需要进行调整 */
}
.icon-group img {
transform: scale(1);
margin-right: 15px;
margin-top: 6px;
}
}
.target-select{
font-size: 10px;
float: left;
margin-top: 0.5%;
display: inline-block;
height: 60%;
width: 10%;
margin-left: 0.5%;
.custom-popper .el-select-dropdown {
max-height: 3px;
}
.range-select {
// position: absolute;
// top: 12px;
// right: 140px;
::v-deep .el-input {
width: 80%;
.el-input__inner {
background-color: transparent !important;
border-color: transparent;
border-radius: 0;
color: #FFFFFF;
}
/* select去除竖线 */
.el-input__suffix::before {
content: "";
width: 0;
height: 0;
margin: 0;
position: absolute;
}
/*select的上下箭头图标样式*/
.el-select__caret {
color: rgba(2, 221, 234, 0.9);
}
}
}
}
}
</style>
|