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[]; }