wujianwei
2025-08-12 969878a168bd5424120474d39c9aab454298bd4b
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import {createApp} from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
 
import locale from 'element-plus/es/locale/lang/zh-cn' // 中文语言
import 'element-plus/dist/index.css'
import '@/assets/styles/index.scss'
import router from "@/router";
import './permission'
import plugins from './plugins'
import axios from "@/utils/request";
import 'virtual:svg-icons-register'
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import 'default-passive-events'
import elementIcons from '@/components/SvgIcon/svgicon'
 
 
import directive from "@/directive";
 
// pinia store
import pinia from "@/store";
 
const app = createApp(App);
app.use(pinia)
 
import DictTag from "/src/components/DictTag/index.vue";
import FileUpload from "/src/components/FileUpload/index.vue";
import basicContainer from '/src/components/basic-container/main.vue';
import SvgIcon from "/src/components/SvgIcon/index.vue";
 
app.component("DictTag", DictTag);
app.component('FileUpload', FileUpload);
app.component('basicContainer', basicContainer)
 
app.component('svg-icon', SvgIcon)
 
app.use(plugins)
app.use(elementIcons)
 
 
 
//添加自定义指令
directive(app);
 
app.use(ElementPlus, {
    locale: locale,
    size:'default'
})
app.use(router)
app.use(Avue,{
    axios,
    crudOption:{
        border: true,
        align: 'center',
        headerAlign: 'center',
        viewBtn: true,
        selection: true,
        searchSpan: 5,
        props: {
            label: 'dictLabel',
            value: 'dictValue'
        },
        searchMenuSpan: 4,
 
    }
 
})
app.mount('#app')