From 7ecca2a5e7a9c9ae811b68dc98e05c689b18aca6 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 04 5月 2025 15:41:43 +0800
Subject: [PATCH] 222
---
HIAWms/web/src/components/Tab/TabPane.tsx | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/HIAWms/web/src/components/Tab/TabPane.tsx b/HIAWms/web/src/components/Tab/TabPane.tsx
new file mode 100644
index 0000000..04f8609
--- /dev/null
+++ b/HIAWms/web/src/components/Tab/TabPane.tsx
@@ -0,0 +1,22 @@
+import { defineComponent, SetupContext, PropType } from 'vue'
+import styles from './Tab.module.scss'
+
+export default defineComponent({
+ name: 'TabPane',
+ props: {
+ label: {
+ type: String as PropType<string>,
+ },
+ name: {
+ type: String as PropType<string>,
+ },
+ // 娣诲姞鍏朵粬灞炴��
+ },
+ setup(props: any, ctx: SetupContext) {
+ return () => (
+ <el-tab-pane class={styles.pane} label={props.label} name={props.name}>
+ {ctx.slots.default && ctx.slots.default()}
+ </el-tab-pane>
+ )
+ },
+})
--
Gitblit v1.9.3