Blame view

types/iview.components.d.ts 4.34 KB
1011bd41   yangdan8   1.update all d.ts...
1
  // Type definitions for iview 3.3.1
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
2
3
4
  // Project: https://github.com/iview/iview
  // Definitions by: yangdan
  // Definitions: https://github.com/yangdan8/iview.git
99ddff9a   yangd   删除无用的导入VNode
5
  import Vue from 'vue';
414730dd   yangd   完成d.ts定义的优化
6
  
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  export { Affix } from './affix';
  export { Alert } from './alert';
  export { Anchor, AnchorLink } from './anchor';
  export { AutoComplete } from './auto-complete';
  export { Avatar } from './avatar';
  export { BackTop } from './back-top';
  export { Badge } from './badge';
  export { Breadcrumb, BreadcrumbItem } from './breadcrumb';
  export { Button, ButtonGroup } from './button';
  export { Card } from './card';
  export { Carousel, CarouselItem } from './carousel';
  export { Cascader } from './cascader';
  export { Cell, CellGroup } from './cell';
  export { Checkbox, CheckboxGroup } from './checkbox';
  export { Circle, Circle as ICircle } from './circle';
  export { Collapse, CollapsePanel } from './collapse';
  export { ColorPicker } from './color-picker';
  export { Content } from './content';
4a2af4f5   yangd   1.将class定义方式修改为in...
25
  export { DatePicker, DatePickerOptions } from './date-picker';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
26
27
28
29
30
  export { Divider } from './divider';
  export { Drawer } from './drawer';
  export { Dropdown, DropdownMenu, DropdownItem } from './dropdown';
  export { Footer } from './footer';
  export { Form, FormItem } from './form';
4a2af4f5   yangd   1.将class定义方式修改为in...
31
  export { Row, Col } from './grid';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
32
33
34
35
36
37
38
  export { Header } from './header';
  export { Icon } from './icon';
  export { Input } from './input';
  export { InputNumber } from './input-number';
  export { Scroll } from './scroll';
  export { Split } from './split';
  export { Layout } from './layout';
4a2af4f5   yangd   1.将class定义方式修改为in...
39
  export { LoadingBar, LoadingBarConfig } from './loading-bar';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
40
  export { Menu, MenuGroup, MenuItem, MenuSub } from './menu';
4a2af4f5   yangd   1.将class定义方式修改为in...
41
42
43
  export { Message, MessageConfig } from './message';
  export { Modal, ModalInstance, ModalConfig } from './modal';
  export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
44
45
46
47
48
  export { Page } from './page';
  export { Poptip } from './poptip';
  export { Progress } from './progress';
  export { Radio, RadioGroup } from './radio';
  export { Rate } from './rate';
4a2af4f5   yangd   1.将class定义方式修改为in...
49
  export { Select, Option, OptionGroup } from './select';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
50
51
52
53
54
  export { Sider } from './sider';
  export { Slider } from './slider';
  export { Spin } from './spin';
  export { Steps, StepsStep } from './steps';
  export { Switch, Switch as ISwitch } from './switch';
a5722e45   yangd   修正table中render函数返回类型
55
  export { Table, TableColumn, TableRenderCreateElementData, TableColumnRenderParams, TableColumnRenderHeadParams, TableExportCsvParams } from './table';
35713410   Rookie_Zoe   some *.d.ts error
56
  export { Tabs, TabPane } from './tabs';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
57
58
59
60
61
62
  export { Tag } from './tag';
  export { Time } from './time';
  export { Timeline, TimelineItem } from './timeline';
  export { TimePicker } from './time-picker';
  export { Tooltip } from './tooltip';
  export { Transfer } from './transfer';
4a2af4f5   yangd   1.将class定义方式修改为in...
63
  export { Tree, TreeChild } from './tree';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
64
  export { Upload } from './upload';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
65
  
b5e0bdc2   yangd   d.ts全局参数变更增加各组件全局...
66
67
  interface IViewGlobalOptions{
      size?: string;
22827975   yangd   修改IViewGlobalOpti...
68
      transfer?: boolean | string;
b5e0bdc2   yangd   d.ts全局参数变更增加各组件全局...
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
      select: {
          arrow: string;
          customArrow: string;
          arrowSize: number | string;
      };
      cell: {
          arrow: string;
          customArrow: string;
          arrowSize: number | string;
      };
      menu: {
          arrow: string;
          customArrow: string;
          arrowSize: number | string;
      };
      tree: {
          arrow: string;
          customArrow: string;
          arrowSize: number | string;
      };
      cascader: {
          arrow: string;
          customArrow: string;
          arrowSize: number | string;
          itemArrow: string;
          customItemArrow: string;
          itemArrowSize: number | string;
      };
      colorPicker: {
          arrow: string;
          customArrow: string;
          arrowSize: number | string;
      };
      datePicker: {
          icon: string;
          customIcon: string;
          iconSize: number | string;
      };
      timePicker: {
          icon: string;
          customIcon: string;
          iconSize: number | string;
      };
      tabs: {
          closeIcon: string;
          customCloseIcon: string;
          closeIconSize: number | string;
      };
      modal: {
          maskClosable: boolean | string;
      };
  }
  
  interface IViewInstallOptions extends IViewGlobalOptions{
      locale?: any;
      i18n?: any;
  }
  
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
127
128
  declare const API: {
      version: string;
b5e0bdc2   yangd   d.ts全局参数变更增加各组件全局...
129
130
      locale: (l: any) => void;
      i18n: (fn: any) => void;
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
131
132
      install: (
          Vue: Vue,
b5e0bdc2   yangd   d.ts全局参数变更增加各组件全局...
133
          opts: IViewInstallOptions
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
134
135
136
137
138
139
140
141
      ) => void;
      lang: (code: string) => void;
  };
  
  export default API;
  
  declare module 'vue/types/vue' {
      interface Vue {
b5e0bdc2   yangd   d.ts全局参数变更增加各组件全局...
142
          $IVIEW: IViewGlobalOptions;
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
143
144
      }
  }