-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
65 lines (62 loc) · 2.21 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
// import Input from "./components/form/input";
// import Button from "./src/components/form/button/button"
// import ButtonGroup from "./src/components/form/button/buttonGroup"
// import Col from "./src/components/grid/col"
// import Row from "./src/components/grid/row"
// import Icon from "./src/components/icon"
// import Popover from "./src/components/popover"
// import Toast from "./src/components/toast"
// export { Button, ButtonGroup, Icon, Popover,Toast,Col,Row}
import Icon from './src/components/icon/src/icon'
import Button from './src/components//form/button/src/button'
import ButtonGroup from './src/components//form/buttonGroup/src/buttonGroup'
import Input from './src/components//form/input/src/input'
import Toast from './src/components//toast/src/toast'
import Popover from './src/components//popover/src/popover'
import Col from './src/components//grid/col/src/col'
import Row from './src/components//grid/row/src/row'
import Collapse from './src/components//collapse/collapse/src/collapse'
import CollapseItem from './src/components//collapse/collapseItem/src/collapseItem'
import Aside from './src/components//layout/aside/src/aside'
import Main from './src/components//layout/main/src/main'
import Footer from './src/components//layout/footer/src/footer'
import Header from './src/components//layout/header/src/header'
import Layout from './src/components//layout/layout/src/layout'
import Tabs from './src/components//tabs/tabs/src/tabs'
import TabsBody from './src/components//tabs/tabsBody/src/tabsBody'
import TabsHead from './src/components//tabs/tabsHead/src/tabsHead'
import TabsItem from './src/components//tabs/tabsItem/src/tabsItem'
import TabsPane from './src/components//tabs/tabsPane/src/tabsPane'
import ToastPlug from './src/plug/toast.plug'
const components = {
Icon,
Button,
ButtonGroup,
Toast,
Popover,
Input,
Row,
Col,
Collapse,
CollapseItem,
Aside,
Main,
Footer,
Header,
Layout,
Tabs,
TabsBody,
TabsHead,
TabsItem,
TabsPane
}
const install = function (Vue) {
Object.keys(components).forEach(key => {
Vue.component(components[key].name, components[key])
})
Vue.use(ToastPlug)
}
export default {
install,
Icon, Button, ButtonGroup, Toast, Popover, Input, Row, Col
}