2022-05-27 18:48:55 +08:00

42 lines
632 B
Vue

<template>
<magic-ui-page :config="pageConfig"></magic-ui-page>
</template>
<script lang="ts">
import { defineComponent, inject, reactive } from '@vue/composition-api';
import Core from '@tmagic/core';
export default defineComponent({
name: 'App',
setup() {
const app = inject<Core | undefined>('app');
const pageConfig = reactive(app?.page?.data || {});
return {
pageConfig,
};
},
});
</script>
<style lang="scss">
html,
body,
#app {
width: 100%;
height: 100%;
}
#app {
position: relative;
overflow: auto;
}
#app::-webkit-scrollbar {
width: 0 !important;
display: none;
}
</style>