File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
example/src/components/basic Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" pb-8" >
3
- <vue-final -modal
3
+ <v -modal
4
4
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"
7
5
v-bind =" props"
6
+ @confirm =" showModal = false"
7
+ @cancel =" showModal = false"
8
8
>
9
- <span class = " text-2xl mb-2 " ># Hello, world!</span >
9
+ <template v-slot : title ># Hello, world!</template >
10
10
<p >
11
11
Lorem Ipsum is simply dummy text of the printing and typesetting
12
12
industry.
13
13
</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 >
21
15
22
16
<button class =" vfm-btn" @click =" showModal = true" >Open Modal</button >
23
17
You can’t perform that action at this time.
0 commit comments