222
schangxiang@126.com
2025-05-08 961b4e2cd6d9621b5090fc3477615b649bb05737
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { defineComponent } from 'vue'
import styles from './Content.module.scss'
export default defineComponent({
  name: '通用Content',
  props: {
    title: {
      type: String,
      default: '标题',
    },
  },
  setup(props, { slots }) {
    return () => (
      <div class={styles.container}>
        <div class={styles.title}>{props.title}</div>
        <div class={styles.content}>{slots.default?.()}</div>
      </div>
    )
  },
})