Blame view

src/index.js 2.52 KB
3735e376   jingsam   sort components
1
2
3
4
5
  import Affix from './components/affix';
  import Alert from './components/alert';
  import BackTop from './components/back-top';
  import Badge from './components/badge';
  import Breadcrumb from './components/breadcrumb';
7fa943eb   梁灏   init
6
  import Button from './components/button';
3735e376   jingsam   sort components
7
  import Card from './components/card';
0a48ac45   梁灏   Input add readonl...
8
  import Cascader from './components/cascader';
3735e376   jingsam   sort components
9
10
11
  import Checkbox from './components/checkbox';
  import Circle from './components/circle';
  import Collapse from './components/collapse';
7fa943eb   梁灏   init
12
13
  import Icon from './components/icon';
  import Input from './components/input';
7fa943eb   梁灏   init
14
  import InputNumber from './components/input-number';
3735e376   jingsam   sort components
15
16
17
18
  import LoadingBar from './components/loading-bar';
  import Message from './components/message';
  import Modal from './components/modal';
  import Notice from './components/notice';
7fa943eb   梁灏   init
19
  import Page from './components/page';
3735e376   jingsam   sort components
20
  import Poptip from './components/poptip';
7fa943eb   梁灏   init
21
  import Progress from './components/progress';
3735e376   jingsam   sort components
22
23
  import Radio from './components/radio';
  import Slider from './components/slider';
7fa943eb   梁灏   init
24
25
  import Spin from './components/spin';
  import Steps from './components/steps';
3735e376   jingsam   sort components
26
  import Switch from './components/switch';
2cb8a6d9   梁灏   commit Table comp...
27
  import Table from './components/table';
3735e376   jingsam   sort components
28
29
  import Tag from './components/tag';
  import Timeline from './components/timeline';
dce3e753   梁灏   add Tooltip compo...
30
  import Tooltip from './components/tooltip';
77f7bb95   梁灏   add Transfer comp...
31
  import Transfer from './components/transfer';
3735e376   jingsam   sort components
32
33
  import { Row, Col } from './components/layout';
  import { Select, Option, OptionGroup } from './components/select';
7fa943eb   梁灏   init
34
35
  
  const iview = {
3735e376   jingsam   sort components
36
37
38
39
40
41
      Affix,
      Alert,
      BackTop,
      Badge,
      Breadcrumb,
      BreadcrumbItem: Breadcrumb.Item,
5e8a2915   jingsam   add umd library b...
42
      iButton: Button,
c67c7095   梁灏   add some component
43
      ButtonGroup: Button.Group,
3735e376   jingsam   sort components
44
      Card,
0a48ac45   梁灏   Input add readonl...
45
      Cascader,
3735e376   jingsam   sort components
46
47
48
      Checkbox,
      CheckboxGroup: Checkbox.Group,
      Circle,
5e8a2915   jingsam   add umd library b...
49
      iCol: Col,
3735e376   jingsam   sort components
50
      Collapse,
7fa943eb   梁灏   init
51
      Icon,
5e8a2915   jingsam   add umd library b...
52
      iInput: Input,
3735e376   jingsam   sort components
53
54
55
56
57
      InputNumber,
      LoadingBar,
      Message,
      Modal,
      Notice,
5e8a2915   jingsam   add umd library b...
58
      iOption: Option,
f36b2970   jingsam   merge upstream/ma...
59
      OptionGroup,
3735e376   jingsam   sort components
60
61
62
63
      Page,
      Panel: Collapse.Panel,
      Poptip,
      Progress,
7fa943eb   梁灏   init
64
      Radio,
c67c7095   梁灏   add some component
65
      RadioGroup: Radio.Group,
7fa943eb   梁灏   init
66
      Row,
5e8a2915   jingsam   add umd library b...
67
      iSelect: Select,
3735e376   jingsam   sort components
68
69
70
71
72
      Slider,
      Spin,
      Step: Steps.Step,
      Steps,
      Switch,
2cb8a6d9   梁灏   commit Table comp...
73
      iTable: Table,
7fa943eb   梁灏   init
74
      Tag,
7fa943eb   梁灏   init
75
      Timeline,
c67c7095   梁灏   add some component
76
      TimelineItem: Timeline.Item,
77f7bb95   梁灏   add Transfer comp...
77
78
      Tooltip,
      Transfer
7fa943eb   梁灏   init
79
80
  };
  
343abe50   jingsam   add iview.install()
81
82
  const install = function (Vue) {
      Object.keys(iview).forEach((key) => {
5e8a2915   jingsam   add umd library b...
83
          Vue.component(key, iview[key])
451b52ce   梁灏   Global install iView
84
85
86
87
      });
  
      Vue.prototype.$Loading = LoadingBar;
      Vue.prototype.$Message = Message;
2f71cf55   梁灏   fixed bug $Modal
88
      Vue.prototype.$Modal = Modal;
451b52ce   梁灏   Global install iView
89
90
      Vue.prototype.$Notice = Notice;
  };
343abe50   jingsam   add iview.install()
91
92
93
94
  
  // auto install
  if (typeof window !== 'undefined' && window.Vue) {
      install(window.Vue);
451b52ce   梁灏   Global install iView
95
  }
343abe50   jingsam   add iview.install()
96
97
  
  module.exports = Object.assign(iview, {install});