diff --git a/packages/loading/src/directive.js b/packages/loading/src/directive.js index fbc3d9089..24697cb4d 100644 --- a/packages/loading/src/directive.js +++ b/packages/loading/src/directive.js @@ -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' }; }, diff --git a/packages/loading/src/loading-bubbles.svg b/packages/loading/src/loading-bubbles.svg new file mode 100644 index 000000000..4020b4d2f --- /dev/null +++ b/packages/loading/src/loading-bubbles.svg @@ -0,0 +1,14 @@ + + + + + + + + + + +