fix:修改 @mixin 名称

This commit is contained in:
奔跑的面条 2022-05-02 17:18:18 +08:00
parent bf4254719d
commit 621a302451
18 changed files with 26 additions and 31 deletions

View File

@ -15,6 +15,6 @@ onMounted(() => {
@include go('reload') {
height: 100vh;
width: 100vw;
@include filter-bg-color('background-color')
@include fetch-bg-color('background-color')
}
</style>

View File

@ -1,6 +1,5 @@
<template>
<router-view #default="{ Component, route }">
<!-- todo 动画暂时不生效待处理 -->
<transition name="fade" mode="out-in" appear>
<component
v-if="route.noKeepAlive"

View File

@ -18,7 +18,6 @@ const projectRoutes: RouteRecordRaw = {
title: '项目',
isRoot: true
},
// todo 可采用循环动态插入
children: [
{
path: PageEnum.BASE_HOME_ITEMS,

View File

@ -52,7 +52,7 @@
}
//获取背景颜色
@mixin filter-bg-color($target) {
@mixin fetch-bg-color($target) {
@include themeify {
background-color: themed($target);
}
@ -66,7 +66,7 @@
}
//设置边框颜色
@mixin filter-border-color($target) {
@mixin fetch-border-color($target) {
@include themeify {
border-color: themed($target);
}

View File

@ -49,14 +49,14 @@
// 毛玻璃
.go-background-filter {
backdrop-filter: $--filter-blur-base;
@include filter-bg-color('filter-color');
@include fetch-bg-color('filter-color');
box-shadow: $--border-shadow;
}
// 毛玻璃
.go-background-filter-shallow {
backdrop-filter: $--filter-blur-base;
@include filter-bg-color('filter-color-shallow');
@include fetch-bg-color('filter-color-shallow');
box-shadow: $--border-shadow;
}

View File

@ -1,4 +1,3 @@
import { nextTick } from 'vue'
import { icon } from '@/plugins'
import { DialogEnum } from '@/enums/pluginEnum'
import { dialogIconSize } from '@/settings/designSetting'

View File

@ -103,31 +103,31 @@ $topOrBottomHeight: 40px;
margin: 1px;
margin-bottom: 0;
&.bg-depth0 {
@include filter-bg-color('background-color1');
@include fetch-bg-color('background-color1');
.bottom,
.top {
@include filter-bg-color('background-color1');
@include fetch-bg-color('background-color1');
}
}
&.bg-depth1 {
@include filter-bg-color('background-color1');
@include fetch-bg-color('background-color1');
.bottom,
.top {
@include filter-bg-color('background-color2');
@include fetch-bg-color('background-color2');
}
}
&.bg-depth2 {
@include filter-bg-color('background-color2');
@include fetch-bg-color('background-color2');
.bottom,
.top {
@include filter-bg-color('background-color3');
@include fetch-bg-color('background-color3');
}
}
&.bg-depth3 {
@include filter-bg-color('background-color3');
@include fetch-bg-color('background-color3');
.bottom,
.top {
@include filter-bg-color('background-color4');
@include fetch-bg-color('background-color4');
}
}
&.flex {
@ -142,14 +142,14 @@ $topOrBottomHeight: 40px;
height: $topOrBottomHeight;
padding: 0 10px;
border-top: 1px solid;
@include filter-border-color('hover-border-color');
@include fetch-border-color('hover-border-color');
.mt-1 {
margin-top: 2px;
}
}
.top {
border-bottom: 1px solid;
@include filter-border-color('background-color1');
@include fetch-border-color('background-color1');
}
.content {

View File

@ -70,7 +70,7 @@ $centerHeight: 100px;
border-radius: 6px;
cursor: pointer;
border: 1px solid rgba(0, 0, 0, 0);
@include filter-bg-color('background-color2');
@include fetch-bg-color('background-color2');
@extend .go-transition;
&:hover {
@include hover-border-color('background-color4');
@ -83,7 +83,7 @@ $centerHeight: 100px;
align-items: center;
justify-content: space-between;
padding: 2px 15px;
@include filter-bg-color('background-color3');
@include fetch-bg-color('background-color3');
&-text {
font-size: 12px;
margin-left: 8px;

View File

@ -118,7 +118,7 @@ $menuWidth: 65px;
.chart-menu-width {
width: $menuWidth;
flex-shrink: 0;
@include filter-bg-color('background-color2-shallow');
@include fetch-bg-color('background-color2-shallow');
}
.chart-content-list {
flex: 1;

View File

@ -81,7 +81,7 @@ $topHeight: 40px;
height: calc(100vh - #{$--header-height} - #{$topHeight});
.menu-width {
flex-shrink: 0;
@include filter-bg-color('background-color2');
@include fetch-bg-color('background-color2');
}
.menu-component-box {
flex-shrink: 0;

View File

@ -70,7 +70,7 @@ const selectTheme = (theme: ChartColorsNameType) => {
cursor: pointer;
margin-top: 15px;
padding: 0;
@include filter-bg-color('background-color4-shallow');
@include fetch-bg-color('background-color4-shallow');
border-radius: 23px;
overflow: hidden;
@include deep() {

View File

@ -67,8 +67,8 @@ const rangeModelStyle = computed(() => {
@include go(edit-range) {
position: relative;
transform-origin: left top;
@include filter-border-color('hover-border-color');
@include filter-bg-color('background-color2');
@include fetch-border-color('hover-border-color');
@include fetch-bg-color('background-color2');
@include go(edit-range-model) {
z-index: -1;

View File

@ -142,7 +142,7 @@ $asideBottom: 70px;
border-radius: 25px;
border: 1px solid;
mix-blend-mode: luminosity;
@include filter-border-color("hover-border-color-shallow");
@include fetch-border-color("hover-border-color-shallow");
&.aside {
flex-direction: column-reverse;
height: auto;

View File

@ -67,7 +67,7 @@ $textSize: 10px;
@extend .go-transition-quick;
&.hover,
&:hover {
@include filter-bg-color('background-color4');
@include fetch-bg-color('background-color4');
}
/* 选中 */
&.select {

View File

@ -38,7 +38,6 @@ const fetchProhectInfoById = () => {
if (!routeParamsRes) return
const { id } = routeParamsRes
if (id.length) {
// todo
return id[0]
}
return ''

View File

@ -287,7 +287,7 @@ $carousel-image-height: 60vh;
&-card {
@extend .go-background-filter;
@include filter-bg-color('filter-color');
@include fetch-bg-color('filter-color');
box-shadow: 0 0 20px 5px rgba(40, 40, 40, 0.5);
}

View File

@ -101,7 +101,6 @@ const {
const emit = defineEmits(['delete', 'resize', 'edit'])
const props = defineProps({
// todo ITEN type
cardData: Object as PropType<Chartype>
})

View File

@ -73,7 +73,7 @@ $siderHeight: 100vh;
@include go(project) {
&-sider {
@include filter-bg-color('aside-background-color');
@include fetch-bg-color('aside-background-color');
&-top {
display: flex;
align-items: center;