You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apply-assistant-v3/components/panel/fixed.vue

36 lines
658 B
Vue

6 months ago
<template>
3 months ago
<view class="g-components-panel-fixed" :style="{ backgroundColor }" :class="[border ? 'g_border_e_t' : '']">
6 months ago
<slot></slot>
</view>
</template>
<script>
3 months ago
export default {
props: {
border: {
type: Boolean,
default: true,
},
backgroundColor: {
type: String,
default: "#fff",
},
},
};
6 months ago
</script>
<style>
3 months ago
.g-components-panel-fixed {
position: fixed;
width: 100%;
bottom: 0;
left: 0;
padding-top: 12px;
padding-bottom: calc(constant(safe-area-inset-bottom)); /*兼容 IOS<11.2*/
padding-bottom: calc(env(safe-area-inset-bottom)); /*兼容 IOS>11.2*/
min-height: 72px;
z-index: 999;
box-sizing: border-box;
}
</style>