2019-04-03 00:25:12 +02:00
|
|
|
import Vue from 'vue'
|
2019-07-11 22:29:18 +02:00
|
|
|
import { Button, Select, Tag, Option, Table, FormItem, Card, Row, Col, Upload, Checkbox, RadioButton, RadioGroup,
|
|
|
|
Form, Tabs, TabPane, Switch, Input, Loading, TimeSelect, Badge, ButtonGroup, Divider, Step, Steps, Radio,
|
2019-06-18 14:45:04 +02:00
|
|
|
TableColumn, ColorPicker, Pagination, Popover, Tooltip, Dialog, Image, Backtop, Collapse, CollapseItem,
|
2019-06-11 17:44:11 +02:00
|
|
|
Container, Footer, Timeline, TimelineItem, Menu, MenuItem } from 'element-ui'
|
2019-04-23 15:45:52 +02:00
|
|
|
import locale from 'element-ui/lib/locale'
|
2019-06-11 17:44:11 +02:00
|
|
|
|
|
|
|
const locales = {
|
|
|
|
it: require('element-ui/lib/locale/lang/it'),
|
|
|
|
en: require('element-ui/lib/locale/lang/en')
|
|
|
|
}
|
2019-04-03 00:25:12 +02:00
|
|
|
|
2019-06-25 01:05:38 +02:00
|
|
|
export default ({ app, store }) => {
|
|
|
|
locale.use(locales[store.state.locale])
|
2019-04-03 00:25:12 +02:00
|
|
|
Vue.use(Button)
|
2019-07-11 22:29:18 +02:00
|
|
|
Vue.use(RadioButton)
|
|
|
|
Vue.use(RadioGroup)
|
|
|
|
Vue.use(Radio)
|
2019-06-18 14:45:04 +02:00
|
|
|
Vue.use(Collapse)
|
|
|
|
Vue.use(CollapseItem)
|
|
|
|
Vue.use(Backtop)
|
2019-05-30 12:04:14 +02:00
|
|
|
Vue.use(Divider)
|
2019-06-11 17:44:11 +02:00
|
|
|
Vue.use(Image)
|
2019-06-06 23:54:32 +02:00
|
|
|
Vue.use(Step)
|
|
|
|
Vue.use(Steps)
|
2019-05-30 12:04:14 +02:00
|
|
|
Vue.use(Checkbox)
|
|
|
|
Vue.use(Upload)
|
|
|
|
Vue.use(ButtonGroup)
|
|
|
|
Vue.use(Row)
|
|
|
|
Vue.use(Col)
|
|
|
|
Vue.use(Badge)
|
|
|
|
Vue.use(Dialog)
|
|
|
|
Vue.use(Menu)
|
|
|
|
Vue.use(MenuItem)
|
2019-04-29 00:27:29 +02:00
|
|
|
Vue.use(Container)
|
|
|
|
Vue.use(Timeline)
|
|
|
|
Vue.use(TimelineItem)
|
|
|
|
Vue.use(Footer)
|
|
|
|
Vue.use(Tooltip)
|
2019-04-03 00:25:12 +02:00
|
|
|
Vue.use(Popover)
|
|
|
|
Vue.use(Card)
|
|
|
|
Vue.use(Select)
|
|
|
|
Vue.use(Tag)
|
|
|
|
Vue.use(Input)
|
|
|
|
Vue.use(Tabs)
|
|
|
|
Vue.use(TabPane)
|
|
|
|
Vue.use(Option)
|
|
|
|
Vue.use(Switch)
|
|
|
|
Vue.use(ColorPicker)
|
|
|
|
Vue.use(Table)
|
|
|
|
Vue.use(TableColumn)
|
|
|
|
Vue.use(Pagination)
|
|
|
|
Vue.use(FormItem)
|
|
|
|
Vue.use(Form)
|
|
|
|
Vue.use(TimeSelect)
|
|
|
|
Vue.use(Loading.directive)
|
|
|
|
}
|