完成d.ts定义的优化
This commit is contained in:
parent
6da055f33f
commit
414730dde3
61 changed files with 353 additions and 382 deletions
30
types/breadcrumb.d.ts
vendored
Normal file
30
types/breadcrumb.d.ts
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
|
||||
export declare class Breadcrumb extends Vue {
|
||||
/**
|
||||
* 自定义分隔符
|
||||
* @default /
|
||||
*/
|
||||
separator?: string;
|
||||
}
|
||||
|
||||
export declare class BreadcrumbItem extends Vue {
|
||||
/**
|
||||
* 链接,不传则没有链接
|
||||
*/
|
||||
to?: string | object;
|
||||
/**
|
||||
* 路由跳转时,开启 replace 将不会向 history 添加新记录
|
||||
* @default false
|
||||
*/
|
||||
replace?: boolean;
|
||||
/**
|
||||
* 相当于 a 链接的 target 属性
|
||||
* @default _self
|
||||
*/
|
||||
target?: '_blank' | '_self' | '_parent' | '_top';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue