mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 08:57:19 +08:00
19 lines
448 B
Vue
19 lines
448 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 w-40px h-48px flex-c cursor-pointer navbar-bg-hover"
|
|
@click="handleSearch"
|
|
>
|
|
<IconifyIconOffline icon="search" />
|
|
</div>
|
|
<SearchModal v-model:value="show" />
|
|
</template>
|