From 175778137478488ba346f083ed3d6cdc55256419 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周六, 03 5月 2025 17:49:51 +0800
Subject: [PATCH] 22
---
HIAWms/web/src/components/BaseContent/BaseContent.tsx | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/HIAWms/web/src/components/BaseContent/BaseContent.tsx b/HIAWms/web/src/components/BaseContent/BaseContent.tsx
new file mode 100644
index 0000000..401a431
--- /dev/null
+++ b/HIAWms/web/src/components/BaseContent/BaseContent.tsx
@@ -0,0 +1,28 @@
+import { defineComponent } from 'vue'
+import styles from './BaseContent.module.scss'
+import Icon from '../Icon/Icon'
+export default defineComponent({
+ name: '绯荤粺閰嶇疆绛塁ontent',
+ 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>
+ )
+ },
+})
--
Gitblit v1.9.3