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 flowLog from './components/flowLog/index.vue';
|
|
import SvgIcon from "/src/components/SvgIcon/index.vue";
|
|
app.component("DictTag", DictTag);
|
app.component('FileUpload', FileUpload);
|
app.component('basicContainer', basicContainer)
|
app.component('flowLog', flowLog)
|
|
|
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')
|