wangzhibo
2026-07-16 b57020623cf0c946706573bf102e548c3a544423
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { type ModuleConfig } from '/@/cool';
import { config } from '/@/config';
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/display.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import en from 'element-plus/es/locale/lang/en';
// import fr from 'element-plus/es/locale/lang/fr';
// ...
import './css/index.scss';
 
export default (): ModuleConfig => {
    const lang = {
        'zh-cn': zhCn,
        en
        // fr...
    };
 
    return {
        order: 100,
        install(app) {
            app.use(ElementPlus, {
                locale: lang[config.i18n.locale]
            });
        },
 
        label: 'Element Ui',
        description: 'Element Plus 变量、样式配置',
        author: 'COOL',
        version: '1.0.0',
        updateTime: '2024-07-22',
        doc: 'https://element-plus.org/zh-CN/component/overview.html'
    };
};