2022-01-24 15:34:57 +08:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-04-27 16:39:20 +08:00
|
|
|
<hover-container
|
|
|
|
class="w-40px h-full"
|
|
|
|
tooltip-content="搜索"
|
|
|
|
content-class="hover:text-primary"
|
|
|
|
@click="handleSearch"
|
|
|
|
>
|
|
|
|
<icon-uil-search class="text-20px" />
|
2022-01-24 15:34:57 +08:00
|
|
|
</hover-container>
|
|
|
|
<search-modal v-model:value="show" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { useBoolean } from '@/hooks';
|
|
|
|
import { SearchModal } from './components';
|
|
|
|
|
|
|
|
const { bool: show, toggle } = useBoolean();
|
2022-03-05 01:55:21 +08:00
|
|
|
|
2022-01-24 15:34:57 +08:00
|
|
|
function handleSearch() {
|
|
|
|
toggle();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|