5 changed files with 101 additions and 20 deletions
@ -0,0 +1,46 @@ |
|||||
|
<template> |
||||
|
<div class="map-search"> |
||||
|
<span class="map-search-icon"> |
||||
|
<iconpark-icon name="search" size="16" fill="#fff"></iconpark-icon> |
||||
|
</span> |
||||
|
<el-input |
||||
|
class="map-search-input" |
||||
|
placeholder="输入水库名称、水库编码" |
||||
|
></el-input> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import {} from "element-plus/"; |
||||
|
defineOptions({ |
||||
|
name: "MapSearch", |
||||
|
}); |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="less"> |
||||
|
.map-search { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: flex-start; |
||||
|
height: 36px; |
||||
|
border-radius: 4px; |
||||
|
overflow: hidden; |
||||
|
.map-search-icon { |
||||
|
background: #36b29e; |
||||
|
height: 100%; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
width: 36px; |
||||
|
} |
||||
|
|
||||
|
:deep(.map-search-input) { |
||||
|
width: 204px; |
||||
|
background: rgba(255, 255, 255, 0.8); |
||||
|
color: rgba(0, 0, 0, 0.9); |
||||
|
::-webkit-input-placeholder { |
||||
|
color: rgba(0, 0, 0, 0.4); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue