chore (minor, client): accept linter suggestions in MkModal

This commit is contained in:
naskya 2024-04-08 17:42:29 +09:00
parent 2beeeddca2
commit 273f1a8568
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 6 additions and 6 deletions

View File

@ -118,7 +118,7 @@ const props = withDefaults(
}>(),
{
manualShowing: null,
src: null,
src: undefined,
anchor: () => ({ x: "center", y: "bottom" }),
preferType: "auto",
zPriority: "low",
@ -190,7 +190,7 @@ const transitionDuration = computed(() =>
let contentClicking = false;
const focusedElement = document.activeElement;
function close(ev, opts: { useSendAnimation?: boolean } = {}) {
function close(_ev, opts: { useSendAnimation?: boolean } = {}) {
// removeEventListener("popstate", close);
// if (props.preferType == "dialog") {
// history.forward();
@ -235,8 +235,8 @@ const align = () => {
const width = content.value!.offsetWidth;
const height = content.value!.offsetHeight;
let left;
let top;
let left: number;
let top: number;
const x = srcRect.left + (fixed.value ? 0 : window.scrollX);
const y = srcRect.top + (fixed.value ? 0 : window.scrollY);
@ -341,8 +341,8 @@ const align = () => {
transformOrigin.value = `${transformOriginX} ${transformOriginY}`;
content.value.style.left = left + "px";
content.value.style.top = top + "px";
content.value.style.left = `${left}px`;
content.value.style.top = `${top}px`;
};
const onOpened = () => {