zhengyiming
4 天以前 9453bef1fc4a3121b28ffa6617f0fbfc81d9f634
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
<template>
  <div class="main-cell-container">
    <div class="main-cell-wrapper">
      <div class="main-cell-title-wrapper">
        <div class="main-cell-title-line"></div>
        <div class="main-cell-title">{{ title }}</div>
      </div>
      <div class="main-cell-icon" v-if="$slots.icon">
        <slot name="icon" />
      </div>
      <slot />
    </div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'MainCell',
});
 
type Props = {
  title?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>