perf: 优化iPadOS兼容性

This commit is contained in:
kuaifan 2025-06-18 11:29:06 +08:00
parent 8368bbec47
commit b4aa8b37ea
3 changed files with 38 additions and 1 deletions

View File

@ -17,7 +17,11 @@
:reverse="true"
:beforeResize="beforeResize"
@on-change="onChangeResize"/>
<div class="overlay-content"><slot/></div>
<div class="overlay-content">
<div class="overlay-content-status"></div>
<div class="overlay-content-body"><slot/></div>
<div class="overlay-content-navigation"></div>
</div>
</div>
</template>

View File

@ -1,3 +1,16 @@
body {
.ivu-modal-wrap {
&.common-drawer-overlay {
.ivu-modal {
.ivu-modal-content {
margin-top: 0;
margin-bottom: 0;
}
}
}
}
}
.common-drawer-overlay {
.ivu-modal {
margin: 0;
@ -35,6 +48,7 @@
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding-top: var(--status-bar-height);
> a {
display: flex;
@ -76,6 +90,24 @@
background: #fff;
border-radius: 18px 18px 0 0;
cursor: default;
display: flex;
flex-direction: column;
.overlay-content-status {
flex-shrink: 0;
height: var(--status-bar-height);
}
.overlay-content-body {
flex: 1;
height: 0;
position: relative;
}
.overlay-content-navigation {
flex-shrink: 0;
height: var(--navigation-bar-height);
}
.ivu-modal-wrap-apply {
.ivu-modal-wrap-apply-title {

View File

@ -63,6 +63,7 @@
flex-shrink: 0;
border-right: 1px solid #F4F4F5;
overflow: auto;
z-index: 1;
> ul {
padding: 12px 0 0 32px;
> li {