fix type errors of MkCode & MkModalWindow
This commit is contained in:
parent
0b7ab1b90d
commit
124b2244d6
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
() => {},
|
() => {},
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue