fix: lint errors in modal.vue

This commit is contained in:
Norm 2022-07-28 15:47:39 -04:00
parent b7c0e26da9
commit 86b94e213e
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -31,7 +31,7 @@ type ModalTypes = 'popup' | 'dialog' | 'dialog:top' | 'drawer';
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
manualShowing?: boolean | null; manualShowing?: boolean | null;
anchor?: { x: string; y: string; }; anchor?: { x: string; y: string; };
src?: HTMLElement; src?: HTMLElement | null;
preferType?: ModalTypes | 'auto'; preferType?: ModalTypes | 'auto';
zPriority?: 'low' | 'middle' | 'high'; zPriority?: 'low' | 'middle' | 'high';
noOverlap?: boolean; noOverlap?: boolean;
@ -102,7 +102,7 @@ const MARGIN = 16;
const align = () => { const align = () => {
if (props.src == null) return; if (props.src == null) return;
if (type === 'drawer') return; if (type === 'drawer') return;
if (type == 'dialog') return; if (type === 'dialog') return;
if (content == null) return; if (content == null) return;