完成d.ts定义的优化

This commit is contained in:
yangd 2018-08-30 13:27:15 +08:00
parent 6da055f33f
commit 414730dde3
61 changed files with 353 additions and 382 deletions

67
types/anchor.d.ts vendored Normal file
View file

@ -0,0 +1,67 @@
// 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 Anchor extends Vue {
/**
*
* @default true
*/
affix?: boolean;
/**
*
* @default 0
*/
'offset-top'?: number;
/**
*
*/
'offset-bottom'?: number;
/**
* px
* @default 5
*/
bounds?: number;
/**
*
* @default 0
*/
'scroll-offset'?: number;
/**
*
*/
container?: string | HTMLElement;
/**
*
* @default false
*/
'show-ink'?: boolean;
/**
*
*/
$emit(eventName: 'on-select', href: string): this;
/**
*
*/
$emit(eventName: 'on-change', []): this;
}
export declare class AnchorLink extends Vue {
/**
*
* @default
*/
href?: string;
/**
*
* @default
*/
title?: string;
/**
*
* @default 0
*/
'scroll-offset'?: number;
}