fix:修改 @mixin 名称

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -287,7 +287,7 @@ $carousel-image-height: 60vh;
&-card { &-card {
@extend .go-background-filter; @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); 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 emit = defineEmits(['delete', 'resize', 'edit'])
const props = defineProps({ const props = defineProps({
// todo ITEN type
cardData: Object as PropType<Chartype> cardData: Object as PropType<Chartype>
}) })

View File

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