36 lines
587 B
Vue
36 lines
587 B
Vue
|
<template>
|
||
|
<el-config-provider :size="size" :z-index="zIndex" :locale="locale">
|
||
|
<router-view />
|
||
|
</el-config-provider>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import { defineComponent } from 'vue';
|
||
|
import { ElConfigProvider } from 'element-plus';
|
||
|
import zhCn from 'element-plus/lib/locale/lang/zh-cn';
|
||
|
|
||
|
export default defineComponent({
|
||
|
components: {
|
||
|
ElConfigProvider
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
locale: zhCn,
|
||
|
zIndex: 3000,
|
||
|
size: 'default'
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
html,
|
||
|
body,
|
||
|
#app {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
</style>
|