From 152cae4d9fa7d9e39bbb8544a79b26b82be6315f Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 16 Jul 2018 19:18:50 +0800 Subject: [PATCH] Fix Card tabs disable attribute, close #11212 --- components/card/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/card/index.tsx b/components/card/index.tsx index 342d8a1b8f..759f81ccdb 100644 --- a/components/card/index.tsx +++ b/components/card/index.tsx @@ -19,6 +19,7 @@ export type CardType = 'inner'; export interface CardTabListType { key: string; tab: React.ReactNode; + disabled?: boolean; } export interface CardProps extends Omit, 'title'> { @@ -225,7 +226,7 @@ export default class Card extends React.Component { size="large" onChange={this.onTabChange} > - {tabList.map(item => )} + {tabList.map(item => )} ) : null; if (title || extra || tabs) {