refactor(projects): chrome Tab重构完成

This commit is contained in:
Soybean
2021-09-24 16:26:14 +08:00
parent 5be2e2a2e5
commit d488451f42
24 changed files with 264 additions and 477 deletions

View File

@ -0,0 +1,27 @@
<template>
<div
class="relative flex-center w-18px h-18px text-14px"
:class="[isPrimary ? 'text-primary' : 'text-gray-400']"
@mouseenter="setTrue"
@mouseleave="setFalse"
>
<transition name="transition-opacity">
<icon-carbon-close-filled v-if="isHover" key="hover" class="absolute" />
<icon-carbon-close v-else key="unhover" class="absolute" />
</transition>
</div>
</template>
<script lang="ts" setup>
import { useBoolean } from '@/hooks';
defineProps({
isPrimary: {
type: Boolean,
default: false
}
});
const { bool: isHover, setTrue, setFalse } = useBoolean();
</script>
<style scoped></style>