2019-01-01 04:13:51 +00:00
|
|
|
// Project: https://github.com/vueComponent/ant-design-vue
|
|
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
import { AntdComponent } from '../component';
|
|
|
|
import { TabPane } from './tab-pane';
|
2020-08-21 14:12:55 +00:00
|
|
|
import { CSSProperties, VNodeChild } from 'vue';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
export declare class Tabs extends AntdComponent {
|
2019-01-19 10:56:33 +00:00
|
|
|
static TabPane: typeof TabPane;
|
2020-08-21 14:12:55 +00:00
|
|
|
$props: {
|
|
|
|
/**
|
|
|
|
* Current TabPane's key
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
activeKey?: string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Whether to change tabs with animation. Only works while tabPosition="top"\|"bottom"
|
|
|
|
* @default true, false when type="card"
|
|
|
|
* @type boolean | object
|
|
|
|
*/
|
|
|
|
animated?: boolean | { inkBar: boolean; tabPane: boolean };
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Initial active TabPane's key, if activeKey is not set.
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
defaultActiveKey?: string;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Hide plus icon or not. Only works while type="editable-card"
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
hideAdd?: boolean;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* preset tab bar size
|
|
|
|
* @default 'default'
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
size?: 'default' | 'small' | 'large';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Extra content in tab bar
|
|
|
|
* @type any
|
|
|
|
*/
|
|
|
|
tabBarExtraContent?: VNodeChild | JSX.Element;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Tab bar style object
|
|
|
|
* @type object
|
|
|
|
*/
|
|
|
|
tabBarStyle?: CSSProperties;
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Position of tabs
|
|
|
|
* @default 'top'
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
tabPosition?: 'top' | 'right' | 'bottom' | 'left';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* Basic style of tabs
|
|
|
|
* @default 'line'
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
type?: 'line' | 'card' | 'editable-card';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
2020-08-21 14:12:55 +00:00
|
|
|
/**
|
|
|
|
* The gap between tabs
|
|
|
|
* @type number
|
|
|
|
*/
|
|
|
|
tabBarGutter?: number;
|
|
|
|
}
|
2019-01-01 04:13:51 +00:00
|
|
|
}
|