Skip to content

Commit 307013b

Browse files
committed
update example
1 parent 36e5eb5 commit 307013b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

example/src/components/basic/BasicOptions.vue

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
<template>
22
<div class="pb-8">
3-
<vue-final-modal
3+
<v-modal
44
v-model="showModal"
5-
classes="flex justify-center items-center"
6-
content-class="relative max-h-1/2 p-4 bg-white dark:bg-gray-900 border dark:border-gray-800 rounded-lg overflow-auto"
75
v-bind="props"
6+
@confirm="showModal = false"
7+
@cancel="showModal = false"
88
>
9-
<span class="text-2xl mb-2"># Hello, world!</span>
9+
<template v-slot:title># Hello, world!</template>
1010
<p>
1111
Lorem Ipsum is simply dummy text of the printing and typesetting
1212
industry.
1313
</p>
14-
<button
15-
class="absolute top-0 right-0 mt-2 mr-4 text-3xl hover:text-gray-700 leading-none focus:outline-none"
16-
@click="showModal = false"
17-
>
18-
x
19-
</button>
20-
</vue-final-modal>
14+
</v-modal>
2115

2216
<button class="vfm-btn" @click="showModal = true">Open Modal</button>
2317

0 commit comments

Comments
 (0)