Blame view

types/timeline.d.ts 716 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 Timeline extends Vue {
454cdd17   yangd   完成新版本3.0.0的iview全...
8
9
10
11
12
13
14
    /**
     * 指定是否最后一个节点为幽灵节点
     * @default false
     */
    pending?: boolean;
  }
  
414730dd   yangd   完成d.ts定义的优化
15
  export declare class TimelineItem extends Vue {
454cdd17   yangd   完成新版本3.0.0的iview全...
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    /**
     * 圆圈颜色,可选值为blue、red、green,或自定义色值
     * @default blue
     */
    color?: 'blue' | 'red' | 'green' | string;
    /**
     * slot插槽对象
     */
    $slots: {
      /**
       * 基本内容
       */
      '': VNode[];
      /**
       * 自定义时间轴点内容
       */
      dot: VNode[];
    };
  }