mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-14 14:20:31 +08:00
31 lines
599 B
Vue
31 lines
599 B
Vue
<script lang="ts" setup>
|
|
import { SearchModal } from "./components";
|
|
import useBoolean from "../../hooks/useBoolean";
|
|
const { bool: show, toggle } = useBoolean();
|
|
function handleSearch() {
|
|
toggle();
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div class="search-container" @click="handleSearch">
|
|
<IconifyIconOffline icon="search" />
|
|
</div>
|
|
<SearchModal v-model:value="show" />
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.search-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 48px;
|
|
width: 40px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background: #f6f6f6;
|
|
}
|
|
}
|
|
</style>
|