From 6426cabcd5a618afe4fac4b94100fd62fe657ed4 Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 28 May 2021 11:27:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20tab=E5=A2=9E=E5=8A=A0isCardExisted?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/tab.js | 4 ++++ typescript/base/combination/tab.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/base/combination/tab.js b/src/base/combination/tab.js index 1aa075870d..664b0c09ae 100644 --- a/src/base/combination/tab.js +++ b/src/base/combination/tab.js @@ -104,6 +104,10 @@ BI.Tab = BI.inherit(BI.Widget, { }); }, + isCardExisted: function (cardName) { + return this.layout.isCardExisted(cardName); + }, + getSelect: function () { return this.curr; }, diff --git a/typescript/base/combination/tab.ts b/typescript/base/combination/tab.ts index 6d521772cf..a1700f2655 100644 --- a/typescript/base/combination/tab.ts +++ b/typescript/base/combination/tab.ts @@ -28,4 +28,6 @@ export declare class Tab extends Widget { getTab(v: string | number): T; populate(): void; + + isCardExisted(): boolean; }