zhengyiming
9 天以前 1ba3a11308cf59c513d70fbc3608961f19a02621
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
<template>
  <div class="main-cell-wrapper">
    <div class="main-cell-title">{{ title }}</div>
    <div class="main-cell-icon" v-if="$slots.icon">
      <slot name="icon" />
    </div>
    <slot />
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'MainCell',
});
 
type Props = {
  title?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.main-cell-wrapper {
  margin-top: 92px;
  padding: boleGetCssVar('size', 'body-padding-h');
  padding-top: 24px;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
 
  .main-cell-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #000000;
    line-height: 28px;
  }
 
  .main-cell-icon {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
}
</style>