zhengyiming
2025-03-25 c02e7a8fe42de2a5796e95e573f9e6b6735e4d0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<template>
  <div class="main-cell-container">
    <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>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'MainCell',
});
 
type Props = {
  title?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>