|
@@ -18,7 +18,13 @@
|
|
|
</n-space>
|
|
</n-space>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <aside class="content" :class="{'content-height-show-top': showTop}">
|
|
|
|
|
|
|
+ <aside
|
|
|
|
|
+ class="content"
|
|
|
|
|
+ :class="{
|
|
|
|
|
+ 'content-height-show-top-bottom': showBottom || showTop,
|
|
|
|
|
+ 'content-height-show-both': showBottom && showTop
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
<template v-if="xScroll">
|
|
<template v-if="xScroll">
|
|
|
<n-scrollbar x-scrollable>
|
|
<n-scrollbar x-scrollable>
|
|
|
<n-scrollbar>
|
|
<n-scrollbar>
|
|
@@ -35,6 +41,7 @@
|
|
|
</aside>
|
|
</aside>
|
|
|
|
|
|
|
|
<div v-if="showBottom" class="bottom go-mt-0">
|
|
<div v-if="showBottom" class="bottom go-mt-0">
|
|
|
|
|
+ <span>123</span>
|
|
|
<slot name="bottom"></slot>
|
|
<slot name="bottom"></slot>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -83,7 +90,7 @@ const backHandle = () => {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-$topHeight: 40px;
|
|
|
|
|
|
|
+$topOrBottomHeight: 40px;
|
|
|
@include go(content-box) {
|
|
@include go(content-box) {
|
|
|
height: calc(100vh - #{$--header-height});
|
|
height: calc(100vh - #{$--header-height});
|
|
|
margin: 1px;
|
|
margin: 1px;
|
|
@@ -125,7 +132,7 @@ $topHeight: 40px;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
flex-wrap: nowrap;
|
|
flex-wrap: nowrap;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- height: $topHeight;
|
|
|
|
|
|
|
+ height: $topOrBottomHeight;
|
|
|
padding: 0 10px;
|
|
padding: 0 10px;
|
|
|
border-top: 1px solid;
|
|
border-top: 1px solid;
|
|
|
@include filter-border-color("hover-border-color");
|
|
@include filter-border-color("hover-border-color");
|
|
@@ -140,9 +147,15 @@ $topHeight: 40px;
|
|
|
.content {
|
|
.content {
|
|
|
height: calc(100vh - #{$--header-height});
|
|
height: calc(100vh - #{$--header-height});
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
- &.content-height-show-top {
|
|
|
|
|
- height: calc(100vh - #{$--header-height} - #{$topHeight});
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content-height-show-top-bottom {
|
|
|
|
|
+ height: calc(100vh - #{$--header-height} - #{$topOrBottomHeight});
|
|
|
|
|
+ }
|
|
|
|
|
+ .content-height-show-both {
|
|
|
|
|
+ height: calc(
|
|
|
|
|
+ 100vh - #{$--header-height} - #{$topOrBottomHeight} - #{$topOrBottomHeight}
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|