Подключил отображение компонента загрузки (todo: переделать)

This commit is contained in:
Book Pauk
2019-01-13 02:30:52 +07:00
parent d6be5ddf88
commit e79fcfa868
3 changed files with 24 additions and 10 deletions

View File

@@ -50,14 +50,16 @@ import './theme/main.css';
import ElInput from 'element-ui/lib/input';
import './theme/input.css';
const ElNotification = () => import('element-ui/lib/notification');
import Notification from 'element-ui/lib/notification';
import './theme/notification.css';
import Loading from 'element-ui/lib/loading';
import './theme/loading.css';
const components = {
ElMenu, ElMenuItem, ElButton, ElCheckbox, ElTabs, ElTabPane, ElTooltip,
ElContainer, ElAside, ElMain, ElHeader,
ElInput,
ElNotification
ElInput
};
for (let [name, comp] of Object.entries(components)) {
@@ -66,7 +68,7 @@ for (let [name, comp] of Object.entries(components)) {
//Vue.use(Loading.directive);
//Vue.prototype.$loading = Loading.service;
Vue.prototype.$loading = Loading.service;
//Vue.prototype.$msgbox = MessageBox;
//Vue.prototype.$alert = MessageBox.alert;
//Vue.prototype.$confirm = MessageBox.confirm;