chenghongxing f59f613f91 feat: add state of min page height in setting module; 🌟
新增:vuex setting 模块增加页面最小高度 state
2020-07-25 13:11:39 +08:00

27 lines
480 B
Vue

<template>
<div class="new-page" :style="`min-height: ${pageMinHeight}px`">
<h1>{{$t('content')}}</h1>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
name: 'Demo',
i18n: require('./i18n'),
data() {
return {
}
},
computed: {
...mapState('setting', ['pageMinHeight']),
desc() {
return this.$t('description')
}
}
}
</script>
<style scoped lang="less">
@import "index";
</style>