2020-02-27 18:09:23 +08:00
|
|
|
<template>
|
|
|
|
<n-nimbus-service-layout
|
|
|
|
ref="layout"
|
|
|
|
:padding-body="false"
|
|
|
|
:items="items"
|
2020-03-08 14:19:51 +08:00
|
|
|
:sider-style="{
|
|
|
|
height: 'calc(100vh - 64px)',
|
|
|
|
}"
|
|
|
|
:content-style="{
|
|
|
|
height: 'calc(100vh - 64px)',
|
|
|
|
}"
|
2020-02-27 18:09:23 +08:00
|
|
|
>
|
|
|
|
<router-view />
|
2020-03-05 23:01:27 +08:00
|
|
|
<landing-footer style="padding: 32px 204px 16px 56px; text-align: left; font-size: 14px;" />
|
2020-02-27 18:09:23 +08:00
|
|
|
</n-nimbus-service-layout>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-03-05 22:31:20 +08:00
|
|
|
import LandingFooter from './documentation/landing/footer'
|
|
|
|
|
2020-02-27 18:09:23 +08:00
|
|
|
export default {
|
2020-03-05 22:31:20 +08:00
|
|
|
components: {
|
|
|
|
LandingFooter
|
|
|
|
},
|
2020-02-27 18:09:23 +08:00
|
|
|
provide () {
|
|
|
|
return {
|
|
|
|
NDocRoot: this
|
|
|
|
}
|
|
|
|
},
|
|
|
|
inject: {
|
|
|
|
NEntry: {
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
beforeRouteUpdate (to, from, next) {
|
|
|
|
this.memorizedPath = from ? from.path : null
|
|
|
|
next()
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
memorizedPath: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
items () {
|
|
|
|
return this.NEntry.items
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
resetScrollPosition () {
|
2020-03-01 16:34:17 +08:00
|
|
|
this.$refs.layout.scrollTo(0, 0)
|
2020-02-27 18:09:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|