mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
fix(service-layout): padding body in a right manner
This commit is contained in:
parent
c5ef043735
commit
f23a532b67
@ -3,7 +3,7 @@
|
||||
<n-nimbus-service-layout
|
||||
icon="md-contacts"
|
||||
:name="`NAIVE UI (${version})`"
|
||||
:padding-body="false"
|
||||
:padding-body="true"
|
||||
:items="items"
|
||||
>
|
||||
<router-view />
|
||||
|
@ -3,10 +3,16 @@
|
||||
<div><slot name="header" /></div>
|
||||
<div
|
||||
class="n-nimbus-service-layout__body"
|
||||
:class="{ 'n-nimbus-service-layout__body--collapsed': isCollapsed, 'n-nimbus-service-layout__body--active': !isCollapsed, 'n-nimbus-service-layout__body--padded': paddingBody }"
|
||||
:class="{ 'n-nimbus-service-layout__body--collapsed': isCollapsed, 'n-nimbus-service-layout__body--active': !isCollapsed }"
|
||||
>
|
||||
<scrollbar>
|
||||
<slot />
|
||||
<div
|
||||
:style="{
|
||||
padding: paddingBody ? '21px 48px' : 0
|
||||
}"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
</scrollbar>
|
||||
</div>
|
||||
<div
|
||||
|
@ -35,9 +35,6 @@
|
||||
&.n-nimbus-service-layout__body--collapsed {
|
||||
left: 48px;
|
||||
}
|
||||
&.n-nimbus-service-layout__body--padded {
|
||||
padding: 21px 48px;
|
||||
}
|
||||
}
|
||||
.n-nimbus-service-layout__drawer {
|
||||
display: inline-block;
|
||||
|
Loading…
Reference in New Issue
Block a user