康凯
2021-12-14 85195adec8c3acc68eb65431211c24e1fcef717e
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
<template>
  <div class="custom-search1">
    <input class="input-inner" type="text" autocapitalize="off" placeholder="请输入检索词" v-model="searchName"/>
    <div class="input-append" v-on:click="$emit('search',searchName)">
      <span class="iconfont">&#xe82e;</span>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "CustomSearch1",
  data() {
    return {
      searchName: ""
    }
  }
}
</script>
 
<style scoped>
@font-face {
  font-family: 'iconfont';
  src: url('../assets/icon/iconfont.woff2') format('woff2'),
  url('../assets/icon/iconfont.woff') format('woff'),
  url('../assets/icon/iconfont.ttf') format('truetype');
}
 
.iconfont {
  font-family: "iconfont" !important;
  font-size: 2.68rem;
  color: #EFC587;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
.custom-search1 {
  width: 99%;
  height: 8vh;
  border: 0.25rem solid #EFC587;
  box-sizing: border-box;
  border-radius: 200px;
  background-color: rgba(0, 0, 0, 0.23);
 
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
 
.custom-search1 .input-inner {
  width: 80%;
  height: 95%;
  border: 0;
  border-radius: 200px;
  background-color: rgba(0, 0, 0, 0);
 
  font-size: 1.75rem;
  font-family: Microsoft YaHei;
  font-weight: 400;
  line-height: 1.25rem;
  color: #EFC587;
  opacity: 1;
}
 
.custom-search1 .input-inner:focus {
  outline: none;
}
 
.custom-search1 .input-append {
  width: 9%;
  cursor: pointer;
}
 
.custom-search1 .input-append svg {
  max-width: 2.68rem;
  width: 100%;
  height: 100%;
}
</style>