Crunchy
2025-06-14 7e460156de73171f9660ce48f80703e79f8b478d
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
<template>
  <div class="setting-title">
    <div class="title-left">{{left}}</div>
    <div class="title-right" @click="clickEvent"><span :class="icon"></span> {{right}}</div>
  </div>
</template>
 
<script>
export default {
  name: 'SettingTitle',
  props: ['left', 'right', 'icon', 'clickFun'],
  methods: {
    clickEvent() {
      this.clickFun()
    }
  }
}
</script>
 
<style>
.setting-title{
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  .title-left{
    font-size: 26px;
    font-weight: 700;
  }
  .title-right{
    font-size: 20px;
  }
}
</style>