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
| 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: '',
| },
| },
| setup(props, { slots }) {
| 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.content}>{slots.default?.()}</div>
| <footer class={styles.footer}>{slots.footer?.()}</footer>
| </div>
| )
| },
| })
|
|