Skip to content

Commit f8cfc55

Browse files
committed
Merge branch 'master' into next
2 parents 1c3d1eb + e6196be commit f8cfc55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1745
-450
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Vue Final Modal
22

3-
<p align="center"><a href="https://hunterliu1003.github.io/vue-final-modal/" target="_blank" rel="noopener noreferrer"><img src="https://hunterliu1003.github.io/vue-final-modal/preview.png" alt="Vue Final Modal Logo"></a></p>
3+
<p align="center"><a href="https://vue-final-modal.org" target="_blank" rel="noopener noreferrer"><img src="https://vue-final-modal.org/preview.png" alt="Vue Final Modal Logo"></a></p>
44

55
<p align="center">
66
<a href="https://npmcharts.com/compare/vue-final-modal?minimal=true"><img src="https://img.shields.io/npm/dm/vue-final-modal.svg?sanitize=true" alt="Downloads"></a>
77
<a href="https://www.npmjs.com/package/vue-final-modal"><img src="https://badgen.net/bundlephobia/minzip/vue-final-modal" alt="Size"></a>
88
<a href="https://www.npmjs.com/package/vue-final-modal"><img src="https://img.shields.io/npm/v/vue-final-modal.svg?sanitize=true" alt="Version"></a>
99
<a href="https://www.npmjs.com/package/vue-final-modal"><img src="https://img.shields.io/npm/l/vue-final-modal.svg?sanitize=true" alt="License"></a>
10+
<a href="https://app.netlify.com/sites/vue-final-modal/deploys"><img src="https://api.netlify.com/api/v1/badges/444b13a8-540f-4438-94da-80c865c8f103/deploy-status" alt="Netlify Status"></a>
1011
</p>
1112

1213
<p align="right">
@@ -15,9 +16,9 @@
1516
</a>
1617
</p>
1718

18-
### 🎉 [Documentation](https://hunterliu1003.github.io/vue-final-modal/)
19+
### 🎉 [Documentation](https://vue-final-modal.org)
1920

20-
### 🙌 [Examples](https://hunterliu1003.github.io/vue-final-modal/examples)
21+
### 🙌 [Examples](https://vue-final-modal.org/examples)
2122

2223
## Introduction
2324

deploy.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/components/global/BaseButton.vue

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<svg
3+
xmlns="http://www.w3.org/2000/svg"
4+
aria-hidden="true"
5+
x="0px"
6+
y="0px"
7+
viewBox="0 0 100 100"
8+
width="16"
9+
height="16"
10+
>
11+
<path
12+
fill="currentColor"
13+
d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"
14+
/>
15+
<polygon
16+
fill="currentColor"
17+
points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"
18+
/>
19+
</svg>
20+
</template>

docs/components/global/OuterLink.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<a :href="url" class="codepen-link" target="_blank" rel="noopener noreferrer">
3+
SEE PEN
4+
<OutboundLink></OutboundLink>
5+
</a>
6+
</template>
7+
8+
<script>
9+
export default {
10+
props: {
11+
url: {
12+
type: String,
13+
required: true
14+
}
15+
}
16+
}
17+
</script>
18+
19+
<style scoped>
20+
.codepen-link {
21+
@apply text-gray-600 text-sm font-medium inline-flex items-center;
22+
}
23+
.codepen-link:hover {
24+
@apply underline;
25+
}
26+
.codepen-link::before {
27+
content: unset;
28+
}
29+
.dark-mode .codepen-link {
30+
@apply text-gray-400;
31+
}
32+
</style>

docs/components/global/ShowCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<details>
2+
<details class="pt-4">
33
<summary class="outline-none">Show code</summary>
44
<slot />
55
</details>

docs/content/en/events.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,31 @@ position: 3
55
category: Getting Start
66
---
77

8-
## `@before-open`
8+
## All events
9+
10+
### `@before-open`
911

1012
Emits while modal is still invisible, but before transition starting.
1113

12-
## `@opened`
14+
### `@opened`
1315

1416
Emits after modal became visible and transition ended.
1517

16-
## `@before-close`
18+
### `@before-close`
1719

1820
Emits before modal is going to be closed.
1921

20-
## `@closed`
22+
### `@closed`
2123

2224
Emits right before modal is destroyed.
2325

2426
## Examples
2527

2628
<tailwind-events></tailwind-events>
2729

28-
```html[SFC]
30+
<show-code open>
31+
32+
```html
2933
<template>
3034
<vue-final-modal
3135
@before-open="beforeOpen"
@@ -36,4 +40,6 @@ Emits right before modal is destroyed.
3640
...modal content
3741
</vue-final-modal>
3842
</template>
39-
```
43+
```
44+
45+
</show-code>

0 commit comments

Comments
 (0)