update loading

This commit is contained in:
Leopoldthecoder
2016-08-25 16:37:55 +08:00
parent 79d92a8760
commit 8422995141
2 changed files with 21 additions and 6 deletions

View File

@@ -32,20 +32,21 @@ exports.install = Vue => {
el.maskStyle = {
position: 'absolute',
zIndex: '10000',
backgroundColor: 'rgba(0, 0, 0, .7)',
backgroundColor: 'rgba(0, 0, 0, .65)',
margin: '0'
};
el.spinner = document.createElement('i');
el.spinner.className = 'el-icon-loading';
el.spinner = document.createElement('img');
el.spinner.src = require('./loading-bubbles.svg');
el.spinnerStyle = {
color: '#ddd',
fontSize: '32px',
height: '60px',
width: '60px',
position: 'absolute',
top: '50%',
left: '50%',
marginTop: '-19px',
marginLeft: '-16px',
marginTop: '-30px',
marginLeft: '-30px',
zIndex: '10001'
};
},