fix: element theme adjustment

This commit is contained in:
vben
2024-07-31 22:11:24 +08:00
parent 1c9525a013
commit 9a6e29c401
21 changed files with 80 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
# 应用标题
VITE_APP_TITLE=Vben Admin
VITE_APP_TITLE=Vben Admin Ele
# 应用命名空间用于缓存、store等功能的前缀确保隔离
VITE_APP_NAMESPACE=vben-web-element
VITE_APP_NAMESPACE=vben-web-ele

View File

@@ -1,5 +1,5 @@
# 端口号
VITE_PORT=5555
VITE_PORT=5666
VITE_BASE=/

View File

@@ -21,7 +21,7 @@
(function () {
var hm = document.createElement('script');
hm.src =
'https://hm.baidu.com/hm.js?d20a01273820422b6aa2ee41b6c9414d';
'https://hm.baidu.com/hm.js?97352b16ed2df8c3860cf5a1a65fb4dd';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(hm, s);
})();

View File

@@ -6,7 +6,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
"directory": "apps/web-antd"
"directory": "apps/web-ele"
},
"license": "MIT",
"author": {

View File

@@ -1 +0,0 @@
export * from './status';

View File

@@ -1,10 +0,0 @@
import { requestClient } from '#/api/request';
/**
* 模拟任意状态码
*/
async function getMockStatus(status: string) {
return requestClient.get('/status', { params: { status } });
}
export { getMockStatus };

View File

@@ -1,2 +1 @@
export * from './core';
export * from './demos';

View File

@@ -3,7 +3,6 @@ import { createApp } from 'vue';
import { registerAccessDirective } from '@vben/access';
import { initStores } from '@vben/stores';
import '@vben/styles';
import '@vben/styles/antd';
import { setupI18n } from '#/locales';

View File

@@ -8,6 +8,7 @@ import { preferences } from '@vben/preferences';
import dayjs from 'dayjs';
import { Language } from 'element-plus/es/locale';
import enLocale from 'element-plus/es/locale/lang/en';
import defaultLocale from 'element-plus/es/locale/lang/zh-cn';
const elementLocale = ref<Language>(defaultLocale);
@@ -71,9 +72,7 @@ async function loadElementLocale(lang: SupportedLanguagesType) {
break;
}
case 'en-US': {
elementLocale.value = (await import(
'element-plus/es/locale/lang/en'
)) as unknown as Language;
elementLocale.value = enLocale;
break;
}
}

View File

@@ -6,4 +6,7 @@ import { defineOverridesPreferences } from '@vben/preferences';
*/
export const overridesPreferences = defineOverridesPreferences({
// overrides
app: {
name: import.meta.env.VITE_APP_TITLE,
},
});

View File

@@ -10,7 +10,10 @@ import {
type NotificationType = 'error' | 'info' | 'success' | 'warning';
function error() {
ElMessage.error('Once upon a time you dressed so fine');
ElMessage.error({
duration: 2500,
message: 'Once upon a time you dressed so fine',
});
}
function warning() {