parent
16c2b8d26e
commit
7bafe9d94c
15 changed files with 230 additions and 27 deletions
|
@ -1,6 +1,15 @@
|
|||
import Vue from 'vue';
|
||||
import Spin from './spin.vue';
|
||||
|
||||
import { transferIndex, transferIncrease } from '../../utils/transfer-queue';
|
||||
|
||||
function handleGetIndex() {
|
||||
transferIncrease();
|
||||
return transferIndex;
|
||||
}
|
||||
|
||||
let tIndex = handleGetIndex();
|
||||
|
||||
Spin.newInstance = properties => {
|
||||
const _props = properties || {};
|
||||
|
||||
|
@ -27,7 +36,10 @@ Spin.newInstance = properties => {
|
|||
});
|
||||
}
|
||||
return h('div', {
|
||||
'class': 'ivu-spin-fullscreen ivu-spin-fullscreen-wrapper'
|
||||
'class': 'ivu-spin-fullscreen ivu-spin-fullscreen-wrapper',
|
||||
'style': {
|
||||
'z-index': 2010 + tIndex
|
||||
}
|
||||
}, [vnode]);
|
||||
}
|
||||
});
|
||||
|
@ -39,6 +51,7 @@ Spin.newInstance = properties => {
|
|||
return {
|
||||
show () {
|
||||
spin.visible = true;
|
||||
tIndex = handleGetIndex();
|
||||
},
|
||||
remove (cb) {
|
||||
spin.visible = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue