Initial commit
This commit is contained in:
36
desktop/template/src/app.vue
Normal file
36
desktop/template/src/app.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<router-view ref="routerView" v-slot="{Component}">
|
||||
<component :is="Component" :cnc="appData" />
|
||||
</router-view>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {ref, defineComponent} from "vue";
|
||||
import {ElLoading} from "element-plus";
|
||||
export default defineComponent({
|
||||
name: "App",
|
||||
emits: [],
|
||||
props: [],
|
||||
components: {},
|
||||
setup(props, context) {
|
||||
|
||||
const appData: any = ref({
|
||||
loading: ElLoading.service({
|
||||
lock: true,
|
||||
background: "rgba(0, 0, 0, .5)",
|
||||
customClass: "desktop",
|
||||
}),
|
||||
data: false
|
||||
});
|
||||
|
||||
return {
|
||||
props,
|
||||
appData
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import "./assets/css/base.scss";
|
||||
</style>
|
||||
Reference in New Issue
Block a user