Skip to content

Commit 8075b6c

Browse files
committed
Merge branch 'master' into next
2 parents 24f669e + 584de70 commit 8075b6c

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</p>
1111

1212
<p align="right">
13-
<a href="https://www.buymeacoffee.com/PL2qJIx" target="_blank">
13+
<a href="https://www.buymeacoffee.com/PL2qJIx" target="_blank" rel="noopener noreferrer">
1414
<img width="200" src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png" alt="Buy Me A Coffee" />
1515
</a>
1616
</p>

docs/content/en/examples/tailwind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ category: Examples
66
fullscreen: true
77
---
88

9-
See [Tailwind Examples Source Code](https://github.com/hunterliu1003/vue-final-modal/tree/master/docs/components/global/tailwind)
9+
See [Tailwind Examples Source Code](https://github.com/hunterliu1003/vue-final-modal/tree/master/example/src/components/tailwind)
1010

1111
## Simple
1212

docs/content/en/index.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ features:
1616
- Tiny bundle size
1717
---
1818

19-
<img src="/vue-final-modal/preview.png" class="light-img" />
20-
<img src="/vue-final-modal/preview-dark.png" class="dark-img" />
19+
<img src="/vue-final-modal/preview.png" class="light-img" alt="Vue Final Modal Logo" />
20+
<img src="/vue-final-modal/preview-dark.png" class="dark-img" alt="Vue Final Modal Logo" />
2121

2222

2323
<p class="flex space-x-4">
@@ -28,7 +28,7 @@ features:
2828
</p>
2929

3030
<p align="right">
31-
<a href="https://www.buymeacoffee.com/PL2qJIx" target="_blank">
31+
<a href="https://www.buymeacoffee.com/PL2qJIx" target="_blank" rel="noopener noreferrer">
3232
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" >
3333
</a>
3434
</p>
@@ -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
@@ -145,9 +145,7 @@ const CLASS_TYPES = [String, Object, Array]
145145

146146
<basic-options></basic-options>
147147

148-
## [See advanced examples](/examples)
149-
150-
## [See codepen examples](/examples)
148+
## [See more examples](/examples)
151149

152150
## Contribution
153151

docs/content/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
},
88
"defaultBranch": "master",
99
"github": "hunterliu1003/vue-final-modal",
10-
"twitter": false
10+
"twitter": "@hunterliu1003"
1111
}

docs/tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2+
purge: {
3+
content: ['../example/src/components/**/*.vue']
4+
},
25
theme: {
36
extend: {
47
colors: {

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)