fix:vxetable国际化
This commit is contained in:
parent
6bfb930c22
commit
10a52227a2
@ -7,6 +7,7 @@ import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx';
|
||||
import 'vxe-table-plugin-element/dist/style.css';
|
||||
// Vxe UI 组件库
|
||||
import VxeUI, { VxeComponentSizeType } from 'vxe-pc-ui';
|
||||
import { i18n } from '/@/i18n';
|
||||
import ExcelJS from 'exceljs';
|
||||
import { useThemeConfig } from '/@/stores/themeConfig';
|
||||
const vxeSize: VxeComponentSizeType = useThemeConfig().themeConfig.globalComponentSize == 'small' ? 'mini' : useThemeConfig().themeConfig.globalComponentSize == 'default' ? 'small' : 'medium';
|
||||
@ -19,6 +20,7 @@ export const setupVXETable = (app: App) => {
|
||||
VxeUITable.setConfig({
|
||||
theme: 'light', // 主题颜色
|
||||
size: vxeSize, // 全局尺寸mini、small、medium/default
|
||||
i18n: (key, args) => i18n.global.t(key, args),
|
||||
// i18n: (key, args) => i18n.global.t(key, args),
|
||||
// zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡
|
||||
// version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
|
||||
|
||||
Loading…
Reference in New Issue
Block a user