You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oaf/src/App.vue

87 lines
1.7 KiB
Vue

5 years ago
<template>
<base-frame>
<router-view v-slot="{ Component }">
<transition mode="out-in" enter-active-class="animate__fadeInLeft"
leave-active-class="animate__fadeOutRight">
<component class="animate__animated animate__400ms" :is="Component"
:style="{'min-height': store.state.height}"
style="margin: 10px"
></component>
</transition>
</router-view>
</base-frame>
5 years ago
</template>
4 years ago
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
import BaseFrame from './components/frame.vue'
4 years ago
import {onBeforeMount, ref} from 'vue'
import {useStore} from "./store";
let store = useStore()
onBeforeMount(() => {
let loader = document.getElementById("loader-wrapper")
if (loader && loader.parentElement) {
loader.parentElement.removeChild(loader)
}
4 years ago
store.dispatch('fetchSelf')
store.dispatch('user/fetchUserData')
})
let collapsed = ref(true)
</script>
<style lang="less">
.animate__400ms {
--animate-duration: 400ms;
}
5 years ago
.page-h1 {
font-size: 1.5rem;
line-height: 2rem;
margin-left: 2.5rem;
margin-top: 1.25rem;
margin-bottom: 1.25rem;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
5 years ago
/* 周围滑动留白 */
html {
overflow: hidden;
height: 100%;
}
5 years ago
body {
overflow: auto;
height: 100%;
}
5 years ago
4 years ago
.header-icon {
display: inline-block;
font-size: 24px;
margin: 20px 10px 20px 10px;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
width: 100%;
height: 100%;
}
4 years ago
::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
</style>