zhengyiming
2025-02-20 703c46d17731d1b437509f326c050d1d36838f74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
  <div :class="['page-footer', { isOnlyAction }]">
    <div class="page-footer-inner">
      <slot></slot>
    </div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'PageFooter',
});
 
type Props = {
  isOnlyAction?: boolean;
};
 
const props = withDefaults(defineProps<Props>(), {
  isOnlyAction: true,
});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.page-footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0px -5px 20px 0px rgba(0, 0, 0, 0.15);
 
  &::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #ffffff;
    content: '';
    transform: translateY(100%);
  }
 
  .page-footer-inner {
    display: flex;
    align-items: center;
    padding: 12px 0;
    width: 100%;
    box-sizing: border-box;
  }
}
</style>
 
<style lang="scss"></style>