✨(release): 1.2.5
This commit is contained in:
parent
5865bc9ab2
commit
57dac27825
@ -344,12 +344,14 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
|
|||||||
// 间隙
|
// 间隙
|
||||||
let transOffsetTop = 15;
|
let transOffsetTop = 15;
|
||||||
// @ts-ignore 删除项的高度
|
// @ts-ignore 删除项的高度
|
||||||
let offsetHeight =document.getElementById(layerId)?.firstElementChild?.firstElementChild?.offsetHeight;
|
let offsetHeight =
|
||||||
|
document.getElementById(layerId)?.firstElementChild?.firstElementChild
|
||||||
|
?.offsetHeight;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.NotifiyQueen = window.NotifiyQueen || [];
|
window.NotifiyQueen = window.NotifiyQueen || [];
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let notifiyQueen = window.NotifiyQueen;
|
let notifiyQueen = window.NotifiyQueen;
|
||||||
let index = notifiyQueen.findIndex((e: { id: string; }) => e.id === layerId)
|
let index = notifiyQueen.findIndex((e: { id: string }) => e.id === layerId);
|
||||||
let offsetType = notifiyQueen[index].offset;
|
let offsetType = notifiyQueen[index].offset;
|
||||||
let list = notifiyQueen.filter((e: { offset: any }) => {
|
let list = notifiyQueen.filter((e: { offset: any }) => {
|
||||||
if (e.offset === offsetType) {
|
if (e.offset === offsetType) {
|
||||||
@ -364,10 +366,14 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
|
|||||||
?.firstElementChild;
|
?.firstElementChild;
|
||||||
if (offsetType === "rt" || offsetType === "lt") {
|
if (offsetType === "rt" || offsetType === "lt") {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
dom.style["top"] = parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
|
dom.style["top"] =
|
||||||
|
parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
|
||||||
} else {
|
} else {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let bottom =parseFloat(dom.style["top"].split(" - ")[1]) - transOffsetTop - offsetHeight;
|
let bottom =
|
||||||
|
parseFloat(dom.style["top"].split(" - ")[1]) -
|
||||||
|
transOffsetTop -
|
||||||
|
offsetHeight;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
dom.style["top"] = "calc(100vh - " + bottom + "px)";
|
dom.style["top"] = "calc(100vh - " + bottom + "px)";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user