cyl/master-0822
parent
f8ca3098f9
commit
5f4ab4dc7e
@ -1,25 +1,35 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="g-components-panel-fixed">
|
<view class="g-components-panel-fixed" :style="{ backgroundColor }" :class="[border ? 'g_border_e_t' : '']">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
border: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
|
backgroundColor: {
|
||||||
|
type: String,
|
||||||
|
default: "#fff",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.g-components-panel-fixed{
|
.g-components-panel-fixed {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: #fff;
|
padding-top: 12px;
|
||||||
padding-top: 12px;
|
padding-bottom: calc(constant(safe-area-inset-bottom)); /*兼容 IOS<11.2*/
|
||||||
padding-bottom: calc(constant(safe-area-inset-bottom)); /*兼容 IOS<11.2*/
|
padding-bottom: calc(env(safe-area-inset-bottom)); /*兼容 IOS>11.2*/
|
||||||
padding-bottom: calc(env(safe-area-inset-bottom)); /*兼容 IOS>11.2*/
|
min-height: 72px;
|
||||||
min-height:72px;
|
z-index: 999;
|
||||||
border-top: 1rpx solid #eee;
|
box-sizing: border-box;
|
||||||
z-index: 999;
|
}
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in New Issue