diff --git a/src/App.vue b/src/App.vue
index 0f25eb6..d073319 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,10 +1,16 @@
-
+
+
+
diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue
index 132a7ed..9bd345f 100644
--- a/src/layout/components/Settings/index.vue
+++ b/src/layout/components/Settings/index.vue
@@ -11,6 +11,8 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const appStore = useAppStore()
const settingsStore = useSettingsStore()
const permissionStore = usePermissionStore()
+
+
const showSettings = ref(false);
const theme = ref(settingsStore.theme);
const sideTheme = ref(settingsStore.sideTheme);
@@ -99,7 +101,7 @@ defineExpose({
-
+
主题风格设置
diff --git a/src/main.ts b/src/main.ts
index bef444b..32d2c45 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,9 +1,4 @@
import { createApp } from 'vue';
-import Cookies from 'js-cookie';
-// element-plus
-import ElementPlus from 'element-plus';
-import locale from 'element-plus/lib/locale/lang/zh-cn';
-
// global css
import 'uno.css';
import '@/assets/styles/index.scss';
@@ -55,14 +50,4 @@ app.use(plugins);
// 自定义指令
directive(app);
-// 使用element-plus 并且设置全局的大小
-app.use(ElementPlus, {
- locale: locale,
- // 支持 large、default、small
- size: Cookies.get('size') || 'default'
-});
-
-// 修改 el-dialog 默认点击遮照为不关闭
-(app._context.components.ElDialog as any).props.closeOnClickModal.default = false;
-
app.mount('#app');
diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts
index 6ced9ee..9e54a50 100644
--- a/src/types/auto-imports.d.ts
+++ b/src/types/auto-imports.d.ts
@@ -8,8 +8,6 @@ declare global {
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const ElNotification: typeof import('element-plus/es')['ElNotification']
const ElSelect: typeof import('element-plus/es')['ElSelect']
- const ElTable: typeof import('element-plus/es')['ElTable']
- const ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
@@ -295,8 +293,6 @@ declare module 'vue' {
readonly ElMessageBox: UnwrapRef
readonly ElNotification: UnwrapRef
readonly ElSelect: UnwrapRef
- readonly ElTable: UnwrapRef
- readonly ElTreeSelect: UnwrapRef
readonly acceptHMRUpdate: UnwrapRef
readonly asyncComputed: UnwrapRef
readonly autoResetRef: UnwrapRef
diff --git a/src/types/components.d.ts b/src/types/components.d.ts
index 1c855e4..9f02c4b 100644
--- a/src/types/components.d.ts
+++ b/src/types/components.d.ts
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
+ ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDivider: typeof import('element-plus/es')['ElDivider']