-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: push breakdown in modal and facto wrapper (#79)
* refactor: push breakdown in modal and facto wrapper * chore: fix typo * fix: addressOnly btn condition
- Loading branch information
1 parent
054a0dc
commit 9c30c8c
Showing
6 changed files
with
305 additions
and
348 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
import ModalWrap from "@/components/common/ModalWrap.vue"; | ||
const props = defineProps<{ title?: string }>(); | ||
const visible = defineModel<boolean>(); | ||
const emits = defineEmits<{ (e: "close"): void }>(); | ||
</script> | ||
<template> | ||
<ModalWrap :visible="visible" :is-empty="true" @back="emits('close')"> | ||
<div class="bg-grey-200 w-[90vw] md:max-w-[75vw] rounded-md"> | ||
<div class="flex flex-row w-full bg-grey-400 p-6 rounded-tl-md rounded-tr-md justify-between items-center"> | ||
<span>{{ props.title ?? "Popup" }}</span> | ||
<Icon icon="close" class="text-400 hover:opacity-50 cursor-pointer" @click="emits('close')" /> | ||
</div> | ||
<div ref="content" class="max-h-[75vh] overflow-y-auto w-full overflow-x-hidden"> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</ModalWrap> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.