iview/types/anchor.d.ts

67 lines
1.3 KiB
TypeScript
Raw Normal View History

// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
2019-01-05 22:29:10 +08:00
import Vue 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;
}