DigitalFactory/Web/src/main.ts

40 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-03-18 01:36:19 +00:00
import { App, createApp } from 'vue';
import pinia from '/@/stores/index';
import App from '/@/App.vue';
import router from '/@/router';
import { directive } from '/@/directive/index';
import { i18n } from '/@/i18n/index';
import other from '/@/utils/other';
import ElementPlus from 'element-plus';
import '/@/theme/index.scss';
import VueGridLayout from 'vue-grid-layout';
import VForm3 from 'vform3-builds'; // VForm3表单设计
import 'vform3-builds/dist/designer.style.css'; // VForm3表单设计样式
import VueSignaturePad from 'vue-signature-pad'; // 电子签名
import vue3TreeOrg from 'vue3-tree-org'; // 组织架构图
import 'vue3-tree-org/lib/vue3-tree-org.css'; // 组织架构图样式
import 'animate.css'; // 动画库
2024-05-16 10:13:39 +00:00
//import chinaData from 'element-china-area-data'
2024-03-18 01:36:19 +00:00
import VXETable from 'vxe-table';
import 'vxe-table/lib/style.css';
import { disAutoConnect } from 'vue-plugin-hiprint';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
disAutoConnect();
const app = createApp(App);
function useTable(app: any) {
app.use(VXETable);
}
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
directive(app);
other.elSvg(app);
2024-05-16 10:13:39 +00:00
//app.config.globalProperties.$chinaData = chinaData
2024-03-18 01:36:19 +00:00
app.use(pinia).use(router).use(ElementPlus).use(i18n).use(VueGridLayout).use(VForm3).use(VueSignaturePad).use(vue3TreeOrg).use(useTable).mount('#app');