mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 16:37:18 +08:00
22 lines
504 B
Vue
22 lines
504 B
Vue
<script setup lang="ts">
|
|
import { useBoolean } from "../../hooks/useBoolean";
|
|
import SearchModal from "./components/SearchModal.vue";
|
|
|
|
const { bool: show, toggle } = useBoolean();
|
|
function handleSearch() {
|
|
toggle();
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div
|
|
class="search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover"
|
|
@click="handleSearch"
|
|
>
|
|
<IconifyIconOffline icon="ri/search-line" />
|
|
</div>
|
|
<SearchModal v-model:value="show" />
|
|
</div>
|
|
</template>
|