康凯
2021-12-12 96c705e7c0eb114695c04a0500a4abc815739cf6
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
<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)">
      <svg t="1638943404588" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
           p-id="6664" width="200" height="200">
        <path
            d="M469.333 192c153.174 0 277.334 124.16 277.334 277.333 0 68.054-24.534 130.411-65.216 178.688L846.336 818.24l-48.341 49.877L630.4 695.125a276.053 276.053 0 0 1-161.067 51.542C316.16 746.667 192 622.507 192 469.333S316.16 192 469.333 192z m0 64C351.51 256 256 351.51 256 469.333s95.51 213.334 213.333 213.334 213.334-95.51 213.334-213.334S587.157 256 469.333 256z"
            p-id="6665"></path>
      </svg>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "CustomSearch1",
  data() {
    return {
      searchName: ""
    }
  }
}
</script>
 
<style scoped>
.icon {
  fill: currentColor;
  color: #EFC587;
}
 
.custom-search1 {
  width: 99%;
  height: 8vh;
  border: 4px 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%;
  height: 95%;
  cursor: pointer;
}
 
.custom-search1 .input-append svg {
  max-width: 2.68rem;
  width: 100%;
  height: 100%;
}
</style>