File tree Expand file tree Collapse file tree 1 file changed +7
-18
lines changed
storage/framework/core/components/modal/src/components Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,14 @@ function handleClose() {
13
13
}
14
14
15
15
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 >
21
21
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> `
32
24
})
33
25
34
26
function handleClick(action : Transition ) {
@@ -78,9 +70,6 @@ async function handleCopyCode() {
78
70
<div v-else class =" text-gray-500 i-heroicons-document-duplicate" />
79
71
</button >
80
72
</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 >
84
73
85
74
<Modal :visible =" visible" :transition =" currentTransition" @close =" handleClose" >
86
75
<div >
You can’t perform that action at this time.
0 commit comments