From 9bec4dcae002f36aa23231da11cb03a156b40110 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 30 4月 2025 16:24:16 +0800
Subject: [PATCH] 222

---
 PipeLineLems/web/src/components/Tab/TabPane.tsx |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/PipeLineLems/web/src/components/Tab/TabPane.tsx b/PipeLineLems/web/src/components/Tab/TabPane.tsx
index 04f8609..dc30490 100644
--- a/PipeLineLems/web/src/components/Tab/TabPane.tsx
+++ b/PipeLineLems/web/src/components/Tab/TabPane.tsx
@@ -1,5 +1,6 @@
 import { defineComponent, SetupContext, PropType } from 'vue'
 import styles from './Tab.module.scss'
+import { _t, Language } from '@/libs/Language/Language'
 
 export default defineComponent({
   name: 'TabPane',
@@ -10,13 +11,26 @@
     name: {
       type: String as PropType<string>,
     },
+    isHide: {
+      type: Boolean as PropType<boolean>,
+    },
+    lazy: {
+      type: Boolean as PropType<boolean>,
+    },
     // 娣诲姞鍏朵粬灞炴��
   },
   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>
-    )
+    return () => {
+      return !props.isHide ? (
+        <el-tab-pane
+          class={styles.pane}
+          label={_t(props.label)}
+          name={props.name}
+          lazy={props.lazy}
+        >
+          {ctx.slots.default && ctx.slots.default()}
+        </el-tab-pane>
+      ) : null
+    }
   },
 })

--
Gitblit v1.9.3