fix(projects): 页面各部分背景颜色添加自然过渡
This commit is contained in:
parent
6940f37697
commit
1c5fdca596
@ -8,6 +8,9 @@
|
|||||||
border-1px border-[#e5e7eb]
|
border-1px border-[#e5e7eb]
|
||||||
dark:border-[#ffffff3d]
|
dark:border-[#ffffff3d]
|
||||||
rounded-2px
|
rounded-2px
|
||||||
|
transition-border-color
|
||||||
|
duration-300
|
||||||
|
ease-in-out
|
||||||
cursor-pointer
|
cursor-pointer
|
||||||
"
|
"
|
||||||
:class="[closable ? 'pr-6px' : 'pr-14px']"
|
:class="[closable ? 'pr-6px' : 'pr-14px']"
|
||||||
|
@ -12,11 +12,23 @@
|
|||||||
</clipPath>
|
</clipPath>
|
||||||
</defs>
|
</defs>
|
||||||
<svg width="52%" height="100%">
|
<svg width="52%" height="100%">
|
||||||
<use xlink:href="#geometry-left" width="214" height="36" :fill="fill"></use>
|
<use
|
||||||
|
xlink:href="#geometry-left"
|
||||||
|
width="214"
|
||||||
|
height="36"
|
||||||
|
:fill="fill"
|
||||||
|
class="transition-fill duration-300 ease-in-out"
|
||||||
|
></use>
|
||||||
</svg>
|
</svg>
|
||||||
<g transform="scale(-1, 1)">
|
<g transform="scale(-1, 1)">
|
||||||
<svg width="52%" height="100%" x="-100%" y="0">
|
<svg width="52%" height="100%" x="-100%" y="0">
|
||||||
<use xlink:href="#geometry-right" width="214" height="36" :fill="fill"></use>
|
<use
|
||||||
|
xlink:href="#geometry-right"
|
||||||
|
width="214"
|
||||||
|
height="36"
|
||||||
|
:fill="fill"
|
||||||
|
class="transition-fill duration-300 ease-in-out"
|
||||||
|
></use>
|
||||||
</svg>
|
</svg>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<a href="/" class="flex-center nowrap-hidden bg-light dark:bg-dark cursor-pointer">
|
<a
|
||||||
|
href="/"
|
||||||
|
class="
|
||||||
|
flex-center
|
||||||
|
nowrap-hidden
|
||||||
|
bg-light
|
||||||
|
dark:bg-dark
|
||||||
|
transition-background-color
|
||||||
|
duration-300
|
||||||
|
ease-in-out
|
||||||
|
cursor-pointer
|
||||||
|
"
|
||||||
|
>
|
||||||
<system-logo class="w-32px h-32px" :color="theme.themeColor" />
|
<system-logo class="w-32px h-32px" :color="theme.themeColor" />
|
||||||
<h2 v-show="showTitle" class="text-primary pl-8px text-16px font-bold">{{ title }}</h2>
|
<h2 v-show="showTitle" class="text-primary pl-8px text-16px font-bold">{{ title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="multi-tab flex-center w-full pl-16px bg-light dark:bg-dark">
|
<div class="multi-tab flex-center w-full pl-16px">
|
||||||
<div class="flex-1-hidden h-full">
|
<div class="flex-1-hidden h-full">
|
||||||
<better-scroll :options="{ scrollX: true, scrollY: false, click: true }">
|
<better-scroll :options="{ scrollX: true, scrollY: false, click: true }">
|
||||||
<multi-tab />
|
<multi-tab />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { CustomRoute } from '@/interface';
|
import type { CustomRoute } from '@/interface';
|
||||||
import { EnumRoutePath, EnumRouteTitle } from '@/enum';
|
import { EnumRoutePath, EnumRouteTitle } from '@/enum';
|
||||||
import { BasicLayout } from '@/layouts';
|
import { BaseLayout } from '@/layouts';
|
||||||
import { ROUTE_NAME_MAP, setRouterCacheName } from '@/utils';
|
import { ROUTE_NAME_MAP, setRouterCacheName } from '@/utils';
|
||||||
import { ROUTE_HOME } from '../routes';
|
import { ROUTE_HOME } from '../routes';
|
||||||
import DashboardWorkbench from '@/views/dashboard/workbench/index.vue';
|
import DashboardWorkbench from '@/views/dashboard/workbench/index.vue';
|
||||||
@ -10,7 +10,7 @@ setRouterCacheName(DashboardWorkbench, ROUTE_NAME_MAP.get('dashboard_workbench')
|
|||||||
const DASHBOARD: CustomRoute = {
|
const DASHBOARD: CustomRoute = {
|
||||||
name: ROUTE_NAME_MAP.get('dashboard'),
|
name: ROUTE_NAME_MAP.get('dashboard'),
|
||||||
path: EnumRoutePath.dashboard,
|
path: EnumRoutePath.dashboard,
|
||||||
component: BasicLayout,
|
component: BaseLayout,
|
||||||
redirect: { name: ROUTE_NAME_MAP.get('dashboard_analysis') },
|
redirect: { name: ROUTE_NAME_MAP.get('dashboard_analysis') },
|
||||||
meta: {
|
meta: {
|
||||||
title: EnumRouteTitle.dashboard,
|
title: EnumRouteTitle.dashboard,
|
||||||
|
@ -55,7 +55,7 @@ export default defineConfig({
|
|||||||
dark: '#18181c',
|
dark: '#18181c',
|
||||||
'deep-dark': '#101014'
|
'deep-dark': '#101014'
|
||||||
},
|
},
|
||||||
transitionProperty: ['width', 'height', 'background', 'background-color']
|
transitionProperty: ['width', 'height', 'background', 'background-color', 'border-color', 'fill']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
variants: {},
|
variants: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user