Skip to content

Commit 9f48fe3

Browse files
committed
update docs
1 parent 6b0beb4 commit 9f48fe3

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

docs/content/en/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ npm install vue-final-modal
8585

8686
## Basic usage
8787

88-
#### 1. Import and register the modal component.
88+
### Register component
8989

9090
```js
9191
import { VueFinalModal } from 'vue-final-modal'
@@ -97,21 +97,21 @@ export default {
9797
}
9898
```
9999

100-
#### 2. Add the modal component to the template.
100+
### Add component
101101

102102
```html
103103
<vue-final-modal v-model="showModal">
104104
Modal Content Here
105105
</vue-final-modal>
106106
```
107107

108-
#### 3. Create a button to toggle the modal.
108+
### Create a button
109109

110110
```html
111111
<button @click="showModal = true">Launch</button>
112112
```
113113

114-
#### 4. All default props
114+
### All default props
115115

116116
```js
117117
const CLASS_TYPES = [String, Object, Array]
@@ -134,7 +134,7 @@ const CLASS_TYPES = [String, Object, Array]
134134
}
135135
```
136136

137-
#### 5. Events.
137+
### Events
138138

139139
- @before-open: Before open
140140
- @opened: When opened

example/src/components/basic/BasicOptions.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<base-button @click="showModal = true">Open Basic Modal</base-button>
2323

24-
<h4>Prop Options:</h4>
24+
<h3>Prop Options:</h3>
2525

2626
<div
2727
class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 p-4 border rounded"
@@ -72,12 +72,14 @@
7272
<input v-model="allowZIndex" type="checkbox" />
7373
<span>zIndex:</span>
7474
</label>
75-
<input
76-
v-model="zIndex"
77-
type="number"
78-
class="w-20 pl-2 dark:text-black rounded focus:outline-none"
79-
:disabled="!allowZIndex"
80-
/>
75+
<label>
76+
<input
77+
v-model="zIndex"
78+
type="number"
79+
class="w-20 pl-2 dark:text-black rounded focus:outline-none"
80+
:disabled="!allowZIndex"
81+
/>
82+
</label>
8183
</div>
8284
<label class="flex items-center space-x-2">
8385
<span>attach:</span>

0 commit comments

Comments
 (0)