Blame view

types/iview.components.d.ts 3.21 KB
b1b1ea63   yangd   更新d.ts到3.1.0,修复d....
1
  // Type definitions for iview 3.1.0
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
2
3
4
  // Project: https://github.com/iview/iview
  // Definitions by: yangdan
  // Definitions: https://github.com/yangdan8/iview.git
4a2af4f5   yangd   1.将class定义方式修改为in...
5
  import Vue, { VNode } 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';
4a2af4f5   yangd   1.将class定义方式修改为in...
55
  export { Table, TableColumn, TableRenderCreateElementData, TableColumnRenderParams, TableRenderCreateElementResult, TableColumnRenderHeadParams, TableExportCsvParams } from './table';
6d9afa9c   yangd   修改d.ts中的类名,并添加全局方...
56
57
58
59
60
61
62
  export { Tabs, TabsPane } from './tabs';
  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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  
  declare const API: {
      version: string;
      locale: (l) => void;
      i18n: (fn) => void;
      install: (
          Vue: Vue,
          opts: {
              locale?: any;
              i18n?: any;
              size?: any;
              transfer?: any;
          }
      ) => void;
      lang: (code: string) => void;
  };
  
  export default API;
  
  declare module 'vue/types/vue' {
      interface Vue {
          $IVIEW?: {
              size?: string;
              transfer?: string;
          };
      }
  }