Skip to content

Commit 2fae61f

Browse files
committed
Merge branch 'dev' into next
2 parents 493ca80 + 203a5b3 commit 2fae61f

File tree

8 files changed

+25
-32
lines changed

8 files changed

+25
-32
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ Vue.use(VueFinalModal)
103103
```js
104104
// nuxt.config.js
105105
export default {
106-
plugins: ['~plugins/vue-final-modal.js']
106+
plugins: [
107+
{ src: '~plugins/vue-final-modal.js' }
108+
],
109+
build: {
110+
transpile: ['vue-final-modal']
111+
}
107112
}
108113
```
109114

docs/content/en/examples/recommended-use.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@ You can create a `higher-order component` easily and can customize `template`, `
2121
```vue
2222
<template>
2323
<vue-final-modal
24-
:value="value"
2524
v-bind="$attrs"
2625
classes="modal-container"
2726
content-class="modal-content"
2827
v-on="$listeners"
2928
>
30-
<button class="modal__close" @click="$emit('input', false)">
31-
<mdi-close></mdi-close>
32-
</button>
3329
<span class="modal__title">
3430
<slot name="title"></slot>
3531
</span>
@@ -40,15 +36,15 @@ You can create a `higher-order component` easily and can customize `template`, `
4036
<button class="vfm-btn" @click="$emit('confirm')">confirm</button>
4137
<button class="vfm-btn" @click="$emit('cancel')">cancel</button>
4238
</div>
39+
<button class="modal__close" @click="$emit('input', false)">
40+
<mdi-close></mdi-close>
41+
</button>
4342
</vue-final-modal>
4443
</template>
4544
4645
<script>
4746
export default {
48-
name: 'VModal',
49-
props: {
50-
value: { type: Boolean, default: false }
51-
}
47+
name: 'VModal'
5248
}
5349
</script>
5450

docs/content/en/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ export default {
120120
plugins: [
121121
'~plugins/vue-final-modal.js'
122122
],
123+
build: {
124+
transpile: ['vue-final-modal'],
125+
}
123126
}
124127
```
125128

docs/nuxt.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export default theme({
2222
]
2323
],
2424
build: {
25-
extractCSS: true
25+
extractCSS: true,
26+
transpile: ['vue-final-modal']
2627
},
2728
css: ['../example/src/assets/css/button.css'],
2829
modules: ['@nuxtjs/sitemap'],

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@nuxt/content-theme-docs": "^0.6.1",
1313
"nuxt": "^2.14.1",
14-
"vue-final-modal": "^0.13.5"
14+
"vue-final-modal": "^0.16.0"
1515
},
1616
"devDependencies": {
1717
"@nuxtjs/google-analytics": "^2.4.0",

docs/plugins/global.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Vue from 'vue'
22

3-
import VueFinalModal from 'vue-final-modal/lib/VueFinalModal.vue'
4-
// import VueFinalModal from '../../lib/VueFinalModal.vue'
3+
import VueFinalModal from 'vue-final-modal/lib'
54

65
Vue.use(VueFinalModal)
76

docs/yarn.lock

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,11 +2445,6 @@ [email protected]:
24452445
raw-body "2.4.0"
24462446
type-is "~1.6.17"
24472447

2448-
body-scroll-lock@^3.0.3:
2449-
version "3.1.5"
2450-
resolved "https://registry.yarnpkg.com/body-scroll-lock/-/body-scroll-lock-3.1.5.tgz#c1392d9217ed2c3e237fee1e910f6cdd80b7aaec"
2451-
integrity sha512-Yi1Xaml0EvNA0OYWxXiYNqY24AfWkbA6w5vxE7GWxtKfzIbZM+Qw+aSmkgsbWzbHiy/RCSkUZBplVxTA+E4jJg==
2452-
24532448
boolbase@^1.0.0, boolbase@~1.0.0:
24542449
version "1.0.0"
24552450
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
@@ -9904,12 +9899,10 @@ vue-client-only@^2.0.0:
99049899
resolved "https://registry.yarnpkg.com/vue-client-only/-/vue-client-only-2.0.0.tgz#ddad8d675ee02c761a14229f0e440e219de1da1c"
99059900
integrity sha512-arhk1wtWAfLsJyxGMoEYhoBowM87/i6HLSG2LH/03Yog6i2d9JEN1peMP0Ceis+/n9DxdenGYZZTxbPPJyHciA==
99069901

9907-
vue-final-modal@^0.13.5:
9908-
version "0.13.5"
9909-
resolved "https://registry.yarnpkg.com/vue-final-modal/-/vue-final-modal-0.13.5.tgz#60e6d00794400e9a4c98edf80f5d63c0db8f8c21"
9910-
integrity sha512-ALFXJa8tRPgmEHqQwIoI84KygvibJ8EhYnY14DUuLwabij89HjnGY54LonFfNPwK2CYFmcWimkVw6pQ/QBm3xg==
9911-
dependencies:
9912-
body-scroll-lock "^3.0.3"
9902+
vue-final-modal@^0.16.0:
9903+
version "0.16.0"
9904+
resolved "https://registry.yarnpkg.com/vue-final-modal/-/vue-final-modal-0.16.0.tgz#9dc0a9246a8da25f6bceff6e5f78ff2a292d9a88"
9905+
integrity sha512-JJQQxo2b5xnqX5cqN239cUZZ+83AFrp1eM+rpw+DfmWX1UvxcIu83n8TK3//N8mGHNQiXVvWHSv4JeW9716EDA==
99139906

99149907
vue-hot-reload-api@^2.3.0:
99159908
version "2.3.4"

example/src/components/hoc/VModal.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<template>
22
<vue-final-modal
3-
:value="value"
43
v-bind="$attrs"
54
classes="modal-container"
65
content-class="modal-content"
76
>
8-
<button class="modal__close" @click="$emit('input', false)">
9-
<mdi-close></mdi-close>
10-
</button>
117
<span class="modal__title">
128
<slot name="title"></slot>
139
</span>
@@ -18,15 +14,15 @@
1814
<button class="vfm-btn" @click="$emit('confirm')">confirm</button>
1915
<button class="vfm-btn" @click="$emit('cancel')">cancel</button>
2016
</div>
17+
<button class="modal__close" @click="$emit('input', false)">
18+
<mdi-close></mdi-close>
19+
</button>
2120
</vue-final-modal>
2221
</template>
2322

2423
<script>
2524
export default {
26-
name: 'VModal',
27-
props: {
28-
value: { type: Boolean, default: false }
29-
}
25+
name: 'VModal'
3026
}
3127
</script>
3228

0 commit comments

Comments
 (0)