schangxiang@126.com
2025-05-20 cd8356ffd97d25981287d7e075cef498f7e6da58
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
import { defineComponent } from 'vue'
import styles from './BaseContent.module.scss'
import Icon from '../Icon/Icon'
export default defineComponent({
  name: '系统配置等Content',
  props: {
    title: {
      type: String,
      default: '标题',
    },
    icon: {
      type: String,
      default: '',
    },
    customClass: {
      type: String,
      default: '',
    },
  },
  setup(props, { slots, attrs }) {
    return () => (
      <div class={styles.container}>
        <div class={styles.header}>
          <Icon width={22} height={22} icon={props.icon} />
          <div class={styles.title}>{props.title}</div>
        </div>
        <div class={styles.scrollContent}>
          <div class={[styles.content, props.customClass]}>
            {slots.default?.()}
          </div>
        </div>
        <footer class={styles.footer}>{slots.footer?.()}</footer>
      </div>
    )
  },
})