📝: 更新文档
This commit is contained in:
@@ -51,7 +51,10 @@ onMounted(() => {
|
||||
setTimeout(() => {
|
||||
//此处延迟加载class,以免影响弹出效果
|
||||
// @ts-ignore
|
||||
addClass(notifyRef.value.parentElement?.parentElement,"layui-layer-notify");
|
||||
addClass(
|
||||
notifyRef.value.parentElement?.parentElement,
|
||||
"layui-layer-notify"
|
||||
);
|
||||
}, 300);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -145,7 +145,7 @@ const layer = {
|
||||
offset: "rt",
|
||||
time: 2000,
|
||||
area: "auto",
|
||||
shade:false
|
||||
shade: false,
|
||||
};
|
||||
return layer.create(option, defaultOption, callback);
|
||||
},
|
||||
|
||||
@@ -370,7 +370,9 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
|
||||
// 间隙
|
||||
let transOffsetTop = 15;
|
||||
// @ts-ignore 删除项的高度
|
||||
let offsetHeight = document.getElementById(layerId)?.firstElementChild?.firstElementChild ?.offsetHeight;
|
||||
let offsetHeight =
|
||||
document.getElementById(layerId)?.firstElementChild?.firstElementChild
|
||||
?.offsetHeight;
|
||||
// @ts-ignore
|
||||
window.NotifiyQueen = window.NotifiyQueen || [];
|
||||
// @ts-ignore
|
||||
@@ -390,10 +392,14 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
|
||||
?.firstElementChild;
|
||||
if (offsetType === "rt" || offsetType === "lt") {
|
||||
// @ts-ignore
|
||||
dom.style["top"] = parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
|
||||
dom.style["top"] =
|
||||
parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
|
||||
} else {
|
||||
// @ts-ignore
|
||||
let bottom = parseFloat(dom.style["top"].split(" - ")[1]) - transOffsetTop - offsetHeight;
|
||||
let bottom =
|
||||
parseFloat(dom.style["top"].split(" - ")[1]) -
|
||||
transOffsetTop -
|
||||
offsetHeight;
|
||||
// @ts-ignore
|
||||
dom.style["top"] = "calc(100vh - " + bottom + "px)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user