From af1c9e588f1de0240390648f9bb56aa486870aff Mon Sep 17 00:00:00 2001 From: chengxiangling <291105840@qq.com> Date: 星期五, 16 五月 2025 17:40:18 +0800 Subject: [PATCH] 提交高度修改; --- src/main.js | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main.js b/src/main.js index 496881d..b7f19e8 100644 --- a/src/main.js +++ b/src/main.js @@ -2,10 +2,10 @@ import Cookies from 'js-cookie' -import ElementPlus from 'element-plus' +// import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import 'element-plus/theme-chalk/dark/css-vars.css' -import locale from 'element-plus/es/locale/lang/zh-cn' +// import locale from 'element-plus/es/locale/lang/zh-cn' import '@/assets/styles/index.scss' // global css @@ -48,8 +48,12 @@ import VxeUITable from 'vxe-table' import 'vxe-table/lib/style.css' import i18n from '@/utils/i18n' // 寮曞叆 i18n 閰嶇疆鏂囦欢 +import zhCN from 'vxe-table/lib/locale/lang/zh-CN' // 涓枃(绠�浣�) +import enUS from 'vxe-table/lib/locale/lang/en-US' +// 娉ㄥ唽璇█ +VxeUITable.setI18n('zh-CN', zhCN) +VxeUITable.setI18n('en-US', enUS) const app = createApp(App) - // 鍏ㄥ眬鏂规硶鎸傝浇 app.config.globalProperties.useDict = useDict app.config.globalProperties.download = download @@ -78,11 +82,10 @@ directive(app) // 浣跨敤element-plus 骞朵笖璁剧疆鍏ㄥ眬鐨勫ぇ灏� -app.use(ElementPlus, { - locale: locale, - // 鏀寔 large銆乨efault銆乻mall - size: Cookies.get('size') || 'default' -}) +// app.use(ElementPlus, { +// // 鏀寔 large銆乨efault銆乻mall +// size: Cookies.get('size') || 'default' +// }) app.use(VxeUIAll) app.use(VxeUITable) app.use(i18n) -- Gitblit v1.9.3