forked from FoundKeyGang/FoundKey
fix: lint errors in modal.vue
This commit is contained in:
parent
b7c0e26da9
commit
86b94e213e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue