<template>
  <view class="view">
    <slot></slot>
    <view class="safe" v-if="isFit"></view>
  </view>
</template>

<script>
export default {
  name: 'cs-bottom-wrapper',
  data() {
    return {}
  },
  computed: {
    isFit() {
      return uni.getStorageSync('SYSTEM').includes('iOS')
    }
  }
}
</script>

<style lang="scss" scoped>
.view {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  .safe {
    height: 25px;
  }
}
</style>
