From 19156ec39f96b5985beb14476ce52c8f6aa5cd96 Mon Sep 17 00:00:00 2001 From: Rex Date: Fri, 23 Feb 2024 14:37:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9E=E6=89=80=E9=80=89tab=20id?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/combination/tab.js | 4 ++++ packages/fineui/typescript/base/combination/tab.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/packages/fineui/src/base/combination/tab.js b/packages/fineui/src/base/combination/tab.js index 6f025baf4..c9f79278a 100644 --- a/packages/fineui/src/base/combination/tab.js +++ b/packages/fineui/src/base/combination/tab.js @@ -158,6 +158,10 @@ export class Tab extends Widget { return this.layout.isCardExisted(cardName); } + getAllCardIds() { + return Object.keys(this.cardMap); + } + getSelect() { return this.curr; } diff --git a/packages/fineui/typescript/base/combination/tab.ts b/packages/fineui/typescript/base/combination/tab.ts index fa4cc8b25..dbb4c907a 100644 --- a/packages/fineui/typescript/base/combination/tab.ts +++ b/packages/fineui/typescript/base/combination/tab.ts @@ -31,4 +31,6 @@ export declare class Tab extends Widget { populate(): void; isCardExisted(cardName: string): boolean; + + getAllCardIds(): string[]; }