From 574f47cb00efc521e770bed506e160e5ce7e8d34 Mon Sep 17 00:00:00 2001 From: ClariS <1457715339@qq.com> Date: Thu, 7 Sep 2023 13:43:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BD=BF=E7=94=A8=20%placeholder=20?= =?UTF-8?q?=E4=BB=A3=E6=9B=BF=20@mixin=20(#131)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/LeftMode.vue | 2 +- src/layouts/LeftTopMode.vue | 2 +- src/layouts/TopMode.vue | 2 +- src/layouts/components/AppMain.vue | 2 +- src/layouts/components/Settings/index.vue | 2 +- src/layouts/components/Sidebar/index.vue | 6 +++--- src/styles/index.scss | 2 +- src/styles/mixins.scss | 6 +++--- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/layouts/LeftMode.vue b/src/layouts/LeftMode.vue index db63931..dfeee09 100644 --- a/src/layouts/LeftMode.vue +++ b/src/layouts/LeftMode.vue @@ -51,7 +51,7 @@ const handleClickOutside = () => { $transition-time: 0.35s; .app-wrapper { - @include clearfix; + @extend %clearfix; position: relative; width: 100%; } diff --git a/src/layouts/LeftTopMode.vue b/src/layouts/LeftTopMode.vue index 4848b69..1102416 100644 --- a/src/layouts/LeftTopMode.vue +++ b/src/layouts/LeftTopMode.vue @@ -43,7 +43,7 @@ const layoutClasses = computed(() => { $transition-time: 0.35s; .app-wrapper { - @include clearfix; + @extend %clearfix; width: 100%; } diff --git a/src/layouts/TopMode.vue b/src/layouts/TopMode.vue index 87cf2bc..52f39a1 100644 --- a/src/layouts/TopMode.vue +++ b/src/layouts/TopMode.vue @@ -31,7 +31,7 @@ const { showTagsView, showLogo } = storeToRefs(settingsStore) $transition-time: 0.35s; .app-wrapper { - @include clearfix; + @extend %clearfix; width: 100%; } diff --git a/src/layouts/components/AppMain.vue b/src/layouts/components/AppMain.vue index ddab612..433ba9c 100644 --- a/src/layouts/components/AppMain.vue +++ b/src/layouts/components/AppMain.vue @@ -40,7 +40,7 @@ const settingsStore = useSettingsStore() .app-scrollbar { flex-grow: 1; overflow: auto; - @include scrollbar; + @extend %scrollbar; display: flex; flex-direction: column; .app-container-grow { diff --git a/src/layouts/components/Settings/index.vue b/src/layouts/components/Settings/index.vue index 1ba1b28..6fe47bd 100644 --- a/src/layouts/components/Settings/index.vue +++ b/src/layouts/components/Settings/index.vue @@ -74,7 +74,7 @@ watchEffect(() => { justify-content: space-between; align-items: center; .setting-name { - @include ellipsis; + @extend %ellipsis; } } .el-button { diff --git a/src/layouts/components/Sidebar/index.vue b/src/layouts/components/Sidebar/index.vue index f0b5be7..c74967c 100644 --- a/src/layouts/components/Sidebar/index.vue +++ b/src/layouts/components/Sidebar/index.vue @@ -77,7 +77,7 @@ const tipLineWidth = computed(() => {