Skip to content

Commit

Permalink
chore: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
shunnNet committed Oct 15, 2024
1 parent fad2d1d commit 4b1778c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/SingleModalSectionA.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const ModalAActive = useModalActive('ModalPageSingleA')
v-if="isModalAActive"
to="body"
>
<div class="fixed top-20px left-20px z-100000">
<div class="fixed bottom-20px left-20px z-100000">
<ElButton
type="warning"
@click="close()"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/nested/ModalB.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const onOpenFailedCase = async (name: string) => {
</RouterLink>

<div class="my-4">
<RouterView />
<RouterView name="modal-default" />
</div>

<div class="grid gap-4 max-w-200px">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/page-single-modal/ModalB.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const route = useRoute()
<p>Close: no returnValue</p>
<p>Confirm: 'ModalB return value'</p>
<HighlightText :message="`Message from props: ${ message}`" />
<RouterView />
<RouterView name="modal-default" />
<template #footer>
<ElButton
type="warning"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/prepare-open/ModalC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const onSubmit = async () => {
Try to Refresh the page. Or copy/paste current url to other tab. <br>
And you will first see the loading, then modal show after data loading complete.
</div>
<RouterView />
<RouterView name="modal-default" />
<template #footer>
<ElButton
type="warning"
Expand Down

0 comments on commit 4b1778c

Please sign in to comment.