Skip to content

Commit d58cce8

Browse files
committed
chore: wip
1 parent e06f6e3 commit d58cce8

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

storage/framework/core/components/modal/src/components/Transitions.vue

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,14 @@ function handleClose() {
1313
}
1414
1515
const renderedCode = computed(() => {
16-
return `
17-
<!-- App.vue -->
18-
<script setup lang="ts">
19-
import { Transition } from 'vue'
20-
<\/script>
16+
return `<Modal :visible="visible" @close="handleClose" transition="${currentTransition.value}">
17+
<template #closeButton />
18+
<template #header>
19+
<h1> Hello Detail</h1>
20+
</template>
2121
22-
<template>
23-
<Modal :visible="visible" @close="handleClose" transition="${currentTransition.value}">
24-
<template #closeButton />
25-
<template #header>
26-
<h1> Hello Detail</h1>
27-
</template>
28-
29-
<p>Modal Content</p>
30-
</Modal>
31-
</template>`
22+
<p>Modal Content</p>
23+
</Modal>`
3224
})
3325
3426
function handleClick(action: Transition) {
@@ -78,9 +70,6 @@ async function handleCopyCode() {
7870
<div v-else class="text-gray-500 i-heroicons-document-duplicate" />
7971
</button>
8072
</div>
81-
<div class="my-3 text-sm text-gray-500">
82-
For custom transition, you can use the custom class to apply the transition to the modal content.
83-
</div>
8473

8574
<Modal :visible="visible" :transition="currentTransition" @close="handleClose">
8675
<div>

0 commit comments

Comments
 (0)