From 75eadd2094e777d518f42c2a5c55cbb4006f49d9 Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Tue, 20 Jun 2023 18:40:18 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20?=
=?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=B0=86=20props=20=E8=BF=90=E8=A1=8C?=
=?UTF-8?q?=E6=97=B6=E5=A3=B0=E6=98=8E=E4=BF=AE=E6=94=B9=E4=B8=BA=E7=B1=BB?=
=?UTF-8?q?=E5=9E=8B=E5=A3=B0=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Notify/NotifyList.vue | 12 ++++----
src/components/Screenfull/index.vue | 23 +++++++-------
src/components/SvgIcon/index.vue | 16 +++++-----
src/layout/components/Hamburger/index.vue | 11 +++----
src/layout/components/RightPanel/index.vue | 11 +++----
src/layout/components/Sidebar/SidebarItem.vue | 30 ++++++++-----------
.../components/Sidebar/SidebarItemLink.vue | 11 ++++---
src/layout/components/Sidebar/SidebarLogo.vue | 11 +++----
src/layout/components/TagsView/ScrollPane.vue | 13 ++++----
9 files changed, 63 insertions(+), 75 deletions(-)
diff --git a/src/components/Notify/NotifyList.vue b/src/components/Notify/NotifyList.vue
index 287e81a..bf1cb42 100644
--- a/src/components/Notify/NotifyList.vue
+++ b/src/components/Notify/NotifyList.vue
@@ -1,13 +1,11 @@
diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue
index 74d32b2..c5146bb 100644
--- a/src/components/Screenfull/index.vue
+++ b/src/components/Screenfull/index.vue
@@ -3,22 +3,19 @@ import { ref, watchEffect } from "vue"
import { ElMessage } from "element-plus"
import screenfull from "screenfull"
-const props = defineProps({
+interface Props {
+ element?: string
+ openTips?: string
+ exitTips?: string
+}
+
+const props = withDefaults(defineProps(), {
/** 全屏的元素,默认是 html */
- element: {
- type: String,
- default: "html"
- },
+ element: "html",
/** 打开全屏提示语 */
- openTips: {
- type: String,
- default: "全屏"
- },
+ openTips: "全屏",
/** 关闭全屏提示语 */
- exitTips: {
- type: String,
- default: "退出全屏"
- }
+ exitTips: "退出全屏"
})
const tips = ref(props.openTips)
diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue
index bf8fd9d..dbbab09 100644
--- a/src/components/SvgIcon/index.vue
+++ b/src/components/SvgIcon/index.vue
@@ -1,15 +1,13 @@
diff --git a/src/layout/components/Sidebar/SidebarLogo.vue b/src/layout/components/Sidebar/SidebarLogo.vue
index 0edb153..cce14c1 100644
--- a/src/layout/components/Sidebar/SidebarLogo.vue
+++ b/src/layout/components/Sidebar/SidebarLogo.vue
@@ -1,9 +1,10 @@
diff --git a/src/layout/components/TagsView/ScrollPane.vue b/src/layout/components/TagsView/ScrollPane.vue
index 6539999..22e6d66 100644
--- a/src/layout/components/TagsView/ScrollPane.vue
+++ b/src/layout/components/TagsView/ScrollPane.vue
@@ -1,17 +1,16 @@