fix: lint errors in modal.vue #40

Merged
toast merged 1 commit from :fix/modal.vue into main 2022-07-29 12:10:19 +00:00

View file

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