From c582f72ea713792a59291aaea86821926b6ce5be Mon Sep 17 00:00:00 2001
From: mtruning <1262327911@qq.com>
Date: Sun, 9 Jan 2022 19:22:55 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=AF=AD=E8=A8=80?=
=?UTF-8?q?=E6=8C=82=E8=BD=BD=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 4 +-
.../AppProvider.vue} | 1 +
src/components/AppProvider/index.ts | 3 ++
src/components/AppleControlBtn/index.vue | 41 +++++++++++--------
src/components/Application/index.ts | 3 --
src/components/DialogContent/index.vue | 14 ++-----
src/components/I18n/index.ts | 3 ++
src/components/I18n/index.vue | 7 ++++
src/components/LoadingContent/index.vue | 16 +++-----
src/components/MessageContent/index.vue | 14 +++----
src/layout/index.vue | 5 ---
src/main.ts | 6 +--
src/utils/page.ts | 13 ++----
src/utils/plugin.ts | 20 +++++----
.../chart/components/HeaderLeftBtn/index.vue | 16 ++++++--
src/views/login/index.vue | 29 +++++--------
16 files changed, 96 insertions(+), 99 deletions(-)
rename src/components/{Application/Application.vue => AppProvider/AppProvider.vue} (99%)
create mode 100644 src/components/AppProvider/index.ts
delete mode 100644 src/components/Application/index.ts
create mode 100644 src/components/I18n/index.ts
create mode 100644 src/components/I18n/index.vue
diff --git a/src/App.vue b/src/App.vue
index f14d247a..a5b01dbc 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -6,6 +6,7 @@
:theme-overrides="getThemeOverrides"
>
+
@@ -13,8 +14,9 @@
diff --git a/src/components/AppProvider/index.ts b/src/components/AppProvider/index.ts
new file mode 100644
index 00000000..07a3344e
--- /dev/null
+++ b/src/components/AppProvider/index.ts
@@ -0,0 +1,3 @@
+import AppProvider from './AppProvider.vue';
+
+export { AppProvider };
diff --git a/src/components/AppleControlBtn/index.vue b/src/components/AppleControlBtn/index.vue
index 26684db0..b377dda4 100644
--- a/src/components/AppleControlBtn/index.vue
+++ b/src/components/AppleControlBtn/index.vue
@@ -53,23 +53,28 @@ const filterBtnList = computed(() => {
const isFull = computed(() => {
return props.narrow && screenfullFn(true)
})
-const btnList = [
- {
- title: '关闭',
- key: 'close',
- icon: CloseIcon
- },
- {
- title: '缩小',
- key: 'remove',
- icon: RemoveIcon
- },
- {
- title: isFull ? '缩小' : '放大',
- key: props.narrow ? 'fullResize' : 'resize',
- icon: ResizeIcon
- }
-]
+
+const btnList: {
+ title: string,
+ key: "close" | "remove" | "resize" | "fullResize",
+ icon: any
+}[] = [
+ {
+ title: '关闭',
+ key: 'close',
+ icon: CloseIcon
+ },
+ {
+ title: '缩小',
+ key: 'remove',
+ icon: RemoveIcon
+ },
+ {
+ title: isFull ? '缩小' : '放大',
+ key: props.narrow ? 'fullResize' : 'resize',
+ icon: ResizeIcon
+ }
+ ]
const handleClick = (key: 'close' | 'remove' | 'resize' | 'fullResize') => {
if (key === 'fullResize') screenfullFn()
@@ -80,7 +85,7 @@ const handleClick = (key: 'close' | 'remove' | 'resize' | 'fullResize') => {