refactor: splitting and reorganizing style files

This commit is contained in:
vince
2024-07-08 22:30:19 +08:00
parent 414a639db1
commit 04a1533a1e
56 changed files with 412 additions and 157 deletions

View File

@@ -1,4 +1,4 @@
@import '@vben-core/design/global';
@import '@vben-core/design/bem';
@include b('chrome-tabs') {
--tabs-background: hsl(var(--background));

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { TabItem } from '@vben-core/typings';
import type { TabsProps } from '../../interface';
import type { TabsProps } from '../../types';
import { computed, nextTick, onMounted, ref, watch } from 'vue';
@@ -84,11 +84,7 @@ function handleUnPushPin(tab: TabItem) {
<template>
<div :class="b()" class="relative size-full pt-1">
<div
ref="contentRef"
:class="e('content')"
class="relative h-8 overflow-hidden"
>
<div ref="contentRef" class="relative h-8 overflow-hidden">
<TransitionGroup name="slide-down">
<Tab
v-for="(tab, i) in tabsView"

View File

@@ -4,7 +4,7 @@ import type { TabItem } from '@vben-core/typings';
import { useForwardPropsEmits } from '@vben-core/shadcn-ui';
import { ChromeTabs } from './components';
import { TabsProps } from './interface';
import { TabsProps } from './types';
interface Props extends TabsProps {}