wupengfei
2025-03-11 286f1b727856d6b32a8d237f353ae008f3076deb
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
57
58
59
60
61
62
63
64
65
66
67
<template>
  <button :class="['page-footer-action', { isFlex }]">
    <img :src="icon" class="page-footer-action-icon" />
    <div class="page-footer-action-text">{{ text }}</div>
  </button>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'PageFooterAction',
});
 
type Props = {
  isFlex?: boolean;
  icon?: string;
  text?: string;
};
 
const props = withDefaults(defineProps<Props>(), {
  isFlex: true,
});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.page-footer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
  border-radius: 0;
  outline: none;
  border: none;
  padding: 0;
  appearance: none;
  user-select: none;
  margin: 0 28px;
 
  &::after {
    display: none;
  }
 
  &.isFlex {
    flex: 1;
    min-width: 0;
    margin: 0;
 
    & + .page-footer-action.isFlex {
      border-left: 1px solid #ebebeb;
    }
  }
 
  .page-footer-action-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
  }
 
  .page-footer-action-text {
    font-weight: 400;
    font-size: 24px;
    color: boleGetCssVar('text-color', 'regular');
    line-height: 34px;
  }
}
</style>