fix type errors of MkCode & MkModalWindow

This commit is contained in:
Lhcfl 2024-04-10 22:50:30 +08:00
parent 0b7ab1b90d
commit 124b2244d6
2 changed files with 2 additions and 1 deletions

View file

@ -29,6 +29,7 @@ if (props.lang != null && !(props.lang in Prism.languages)) {
const { lang } = props; const { lang } = props;
loadLanguage(props.lang).then( loadLanguage(props.lang).then(
// onLoaded // onLoaded
// biome-ignore lint/suspicious/noAssignInExpressions: assign intentionally
() => (prismLang.value = lang), () => (prismLang.value = lang),
// onError // onError
() => {}, () => {},

View file

@ -97,7 +97,7 @@ const modal = shallowRef<InstanceType<typeof MkModal>>();
const rootEl = shallowRef<HTMLElement>(); const rootEl = shallowRef<HTMLElement>();
const headerEl = shallowRef<HTMLElement>(); const headerEl = shallowRef<HTMLElement>();
const close = (ev) => { const close = (ev?) => {
modal.value?.close(ev); modal.value?.close(ev);
}; };