Blame view

types/back-top.d.ts 686 Bytes
414730dd   yangd   完成d.ts定义的优化
1
  // Type definitions for iview 3.0.1
454cdd17   yangd   完成新版本3.0.0的iview全...
2
3
4
5
6
  // Project: https://github.com/iview/iview
  // Definitions by: yangdan
  // Definitions: https://github.com/yangdan8/iview.git
  import Vue, { VNode } from "vue";
  
414730dd   yangd   完成d.ts定义的优化
7
  export declare class BackTop extends Vue {
454cdd17   yangd   完成新版本3.0.0的iview全...
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    /**
     * 页面滚动高度达到该值时才显示BackTop组件
     * @default 400
     */
    height?: number;
    /**
     * 组件距离底部的距离
     * @default 30
     */
    bottom?: number;
    /**
     * 组件距离右部的距离
     * @default 30
     */
    right?: number;
    /**
     * 滚动动画持续时间,单位 毫秒
     * @default 1000
     */
    duration?: number;
    /**
     * 点击按钮时触发
     */
    $emit(eventName: 'on-click'): this;
  }