ant-design-vue/types/tabs/tabs.d.ts

78 lines
1.7 KiB
TypeScript
Raw Normal View History

// 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';
export declare class Tabs extends AntdComponent {
static TabPane: typeof TabPane;
2020-08-21 14:12:55 +00:00
$props: {
/**
* Current TabPane's key
* @type string
*/
activeKey?: string;
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 };
2020-08-21 14:12:55 +00:00
/**
* Initial active TabPane's key, if activeKey is not set.
* @type string
*/
defaultActiveKey?: string;
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;
2020-08-21 14:12:55 +00:00
/**
* preset tab bar size
* @default 'default'
* @type string
*/
size?: 'default' | 'small' | 'large';
2020-08-21 14:12:55 +00:00
/**
* Extra content in tab bar
* @type any
*/
tabBarExtraContent?: VNodeChild | JSX.Element;
2020-08-21 14:12:55 +00:00
/**
* Tab bar style object
* @type object
*/
tabBarStyle?: CSSProperties;
2020-08-21 14:12:55 +00:00
/**
* Position of tabs
* @default 'top'
* @type string
*/
tabPosition?: 'top' | 'right' | 'bottom' | 'left';
2020-08-21 14:12:55 +00:00
/**
* Basic style of tabs
* @default 'line'
* @type string
*/
type?: 'line' | 'card' | 'editable-card';
2020-08-21 14:12:55 +00:00
/**
* The gap between tabs
* @type number
*/
tabBarGutter?: number;
}
}