-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
125 lines (120 loc) · 2.64 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
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
import { version } from './package.json';
import Button from "./src/components/button";
import Icon from "./src/components/icon";
import ButtonGroup from "./src/components/button-group";
import Input from "./src/components/input";
import Row from "./src/components/row";
import Col from "./src/components/col";
import Aside from "./src/components/aside";
import Layout from "./src/components/layout";
import Main from "./src/components/main";
import Header from "./src/components/header";
import Footer from "./src/components/footer";
import Message from "./src/components/message";
import Tabs from "./src/components/tabs";
import TabsPane from "./src/components/tabs-pane";
import TabsHead from "./src/components/tabs-head";
import TabsItem from "./src/components/tabs-item";
import TabsBody from "./src/components/tabs-body";
import Popover from "./src/components/popover";
import Collapse from "./src/components/collapse";
import CollapseItem from "./src/components/collapse-item";
import Cascader from "./src/components/cascader";
import Carousel from "./src/components/carousel";
import CarouselItem from "./src/components/carousel-item";
import Menu from "./src/components/menu";
import MenuItem from "./src/components/menu-item";
import SubMenu from "./src/components/sub-menu";
import Pagination from "./src/components/pagination";
import Table from "./src/components/table";
import TableColumn from "./src/components/table-column";
import Upload from "./src/components/upload";
import Sticky from "./src/components/sticky";
import DatePicker from "./src/components/date-picker";
import Scroll from "./src/components/scroll";
const components = [
Button,
Icon,
ButtonGroup,
Input,
Row,
Col,
Aside,
Layout,
Main,
Header,
Footer,
Message,
Tabs,
TabsPane,
TabsHead,
TabsItem,
TabsBody,
Popover,
Collapse,
CollapseItem,
Cascader,
Carousel,
CarouselItem,
Menu,
MenuItem,
SubMenu,
Pagination,
Table,
TableColumn,
Upload,
Sticky,
DatePicker,
Scroll,
];
const install = function(Vue) {
components.forEach(component => {
Vue.use(component);
});
Vue.prototype.$message = Message;
};
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export {
version,
install,
Button,
Icon,
ButtonGroup,
Input,
Row,
Col,
Aside,
Layout,
Main,
Header,
Footer,
Message,
Tabs,
TabsPane,
TabsHead,
TabsItem,
TabsBody,
Popover,
Collapse,
CollapseItem,
Cascader,
Carousel,
CarouselItem,
Menu,
MenuItem,
SubMenu,
Pagination,
Table,
TableColumn,
Upload,
Sticky,
DatePicker,
Scroll,
};
export default {
version,
install,
};