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