-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
36 lines (34 loc) · 962 Bytes
/
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
import Icon from './src/basic/icon/index.js'
import Button from './src/basic/button/index.js'
import ButtonGroup from './src/basic/button-group/index'
import Switch from './src/form/switch/index.js'
import Input from './src/form/input/index.js'
import Cascader from './src/form/cascader/index.js'
import Grid from './src/layout/grid/index.js'
import Container from './src/layout/container/index.js'
import Collapse from './src/layout/collapse/index.js'
import Tabs from './src/navigation/tabs/index.js'
import Toast from './src/notice/toast/plugin'
import Popover from './src/other/popover/index'
import Menu from './src/navigation/menu/index'
const components = [
Icon,
Button,
ButtonGroup,
Switch,
Input,
Cascader,
Grid,
Container,
Collapse,
Tabs,
Menu,
Popover
]
const install = Vue => {
components.forEach(component => {
component.install(Vue)
})
Vue.use(Toast)
}
export default {install}