fix(client): fix zindex issue
This commit is contained in:
parent
ba1e14443c
commit
f9e3fd7001
@ -35,7 +35,7 @@ export default defineComponent({
|
|||||||
u: null,
|
u: null,
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
zIndex: os.claimZIndex(),
|
zIndex: os.claimZIndex('middle'),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ export default defineComponent({
|
|||||||
fetched: false,
|
fetched: false,
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
zIndex: os.claimZIndex(),
|
zIndex: os.claimZIndex('middle'),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ const zIndexes = {
|
|||||||
middle: 2000000,
|
middle: 2000000,
|
||||||
high: 3000000,
|
high: 3000000,
|
||||||
};
|
};
|
||||||
export function claimZIndex(priority: 'low' | 'middle' | 'high'): number {
|
export function claimZIndex(priority: 'low' | 'middle' | 'high' = 'low'): number {
|
||||||
zIndexes[priority] += 100;
|
zIndexes[priority] += 100;
|
||||||
return zIndexes[priority];
|
return zIndexes[priority];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user