26 lines
544 B
Vue
26 lines
544 B
Vue
<template>
|
|
<div>
|
|
<hover-container
|
|
class="w-40px h-full"
|
|
tooltip-content="搜索"
|
|
content-class="hover:text-primary"
|
|
@click="handleSearch"
|
|
>
|
|
<icon-uil-search class="text-20px" />
|
|
</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();
|
|
|
|
function handleSearch() {
|
|
toggle();
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped></style>
|