|
@@ -11,11 +11,15 @@ import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import 'element-plus/dist/index.css'
|
|
import locale from 'element-plus/lib/locale/lang/zh-cn'
|
|
import locale from 'element-plus/lib/locale/lang/zh-cn'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
-// moment
|
|
|
|
-import moment from 'moment'
|
|
|
|
// 图标
|
|
// 图标
|
|
import '@common/src/assets/icon/iconfont.css'
|
|
import '@common/src/assets/icon/iconfont.css'
|
|
|
|
+// moment
|
|
|
|
+import moment from 'moment'
|
|
|
|
+// lodash
|
|
|
|
+// import _ from 'lodash';
|
|
|
|
|
|
|
|
+// 组件
|
|
|
|
+import frameComponents from '@/components/index'
|
|
const app = createApp(App)
|
|
const app = createApp(App)
|
|
app.use(createPinia())
|
|
app.use(createPinia())
|
|
app.use(router)
|
|
app.use(router)
|
|
@@ -25,6 +29,9 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
}
|
|
}
|
|
app.config.globalProperties.$moment = moment
|
|
app.config.globalProperties.$moment = moment
|
|
|
|
|
|
|
|
+for (const componentItme in frameComponents) {
|
|
|
|
+ app.component(componentItme, frameComponents[componentItme])
|
|
|
|
+}
|
|
app.config.globalProperties.$limit = parseInt(import.meta.env.VITE_APP_PAGE_SIZE) || 10
|
|
app.config.globalProperties.$limit = parseInt(import.meta.env.VITE_APP_PAGE_SIZE) || 10
|
|
|
|
|
|
app.mount('#app')
|
|
app.mount('#app')
|