Merge pull request #5445 from yangdan8/2.0_tabs和index添加新api

d.ts更新到3.3.1
This commit is contained in:
Aresn 2019-03-18 16:28:38 +08:00 committed by GitHub
commit 41c71278c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

12
types/tabs.d.ts vendored
View file

@ -39,6 +39,10 @@ export declare interface Tabs extends Vue {
* Promise
*/
'before-remove'?: (index: number) => {};
/**
* 使tabs时name区分层级
*/
name?: string;
/**
* tab
*/
@ -82,4 +86,12 @@ export declare interface TabPane extends Vue {
* @default null
*/
closable?: boolean;
/**
* 使tabs时tabs的name字段
*/
tab?: string;
/**
* tabpane使用v-if时index(0)
*/
index?: number;
}