Skip to content

Commit 0c728ca

Browse files
committed
feat: allow importing component directly
feat: allow importing component directly refactor: refine Plugin.js Squashed commit of the following: commit 65edad5 Author: Hunter <[email protected]> Date: Sun Jun 13 09:54:51 2021 +0800 2.3.2 commit 52ddf45 Merge: c848a8a 836deb0 Author: Hunter Liu <[email protected]> Date: Sun Jun 13 09:53:24 2021 +0800 Merge pull request #129 from vue-final/bugfix/do-not-close-modal-when-select-text fix: #111 commit 836deb0 Author: Hunter <[email protected]> Date: Sun Jun 13 00:12:08 2021 +0800 fix: mobile #111 commit c500513 Author: Hunter <[email protected]> Date: Sat Jun 12 22:25:53 2021 +0800 refactor: avoid using stop event modifiers #111 commit facad84 Merge: c848a8a 090d854 Author: Hunter <[email protected]> Date: Sat Jun 12 20:27:32 2021 +0800 Merge branch 'patch-6' of https://github.com/mesqueeb/vue-final-modal into bugfix/do-not-close-modal-when-select-text commit 090d854 Author: Luca Ban <[email protected]> Date: Sat Jun 12 17:22:39 2021 +0900 fix: #111 commit c848a8a Merge: a8a3922 8518dfc Author: Hunter Liu <[email protected]> Date: Fri Jun 11 11:29:19 2021 +0800 Merge pull request #121 from vue-final/dependabot/npm_and_yarn/glob-parent-5.1.2 build(deps): bump glob-parent from 5.1.1 to 5.1.2 commit a8a3922 Merge: 234e8ad 3958b39 Author: Hunter Liu <[email protected]> Date: Fri Jun 11 11:29:06 2021 +0800 Merge pull request #119 from vue-final/dependabot/npm_and_yarn/lodash-4.17.21 build(deps): bump lodash from 4.17.20 to 4.17.21 commit 234e8ad Merge: b953f97 c362815 Author: Hunter Liu <[email protected]> Date: Fri Jun 11 11:28:52 2021 +0800 Merge pull request #120 from vue-final/dependabot/npm_and_yarn/docs/y18n-4.0.3 build(deps): bump y18n from 4.0.0 to 4.0.3 in /docs commit b953f97 Merge: 45caddc 05219b4 Author: Hunter Liu <[email protected]> Date: Fri Jun 11 11:28:40 2021 +0800 Merge pull request #122 from vue-final/dependabot/npm_and_yarn/ws-5.2.3 build(deps): bump ws from 5.2.2 to 5.2.3 commit 45caddc Merge: 3511740 9ff04c9 Author: Hunter Liu <[email protected]> Date: Fri Jun 11 11:26:44 2021 +0800 Merge pull request #124 from mesqueeb/patch-5 fix(docs): small fix commit f15022a Author: Luca Ban <[email protected]> Date: Fri Jun 11 12:08:42 2021 +0900 fix: #111 proper working fix commit 1d47ff6 Author: Luca Ban <[email protected]> Date: Fri Jun 11 11:58:47 2021 +0900 fix: #111 I believe this should fix #111 but I did not test it yet. Just an idea! Feel free to close : ) commit 9ff04c9 Author: Luca Ban <[email protected]> Date: Fri Jun 11 11:20:49 2021 +0900 Update dynamic-modal.md commit 05219b4 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 10 18:06:58 2021 +0000 build(deps): bump ws from 5.2.2 to 5.2.3 Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@5.2.2...5.2.3) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> commit 8518dfc Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 10 18:06:56 2021 +0000 build(deps): bump glob-parent from 5.1.1 to 5.1.2 Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. - [Release notes](https://github.com/gulpjs/glob-parent/releases) - [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md) - [Commits](gulpjs/glob-parent@v5.1.1...v5.1.2) --- updated-dependencies: - dependency-name: glob-parent dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> commit c362815 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 10 18:06:44 2021 +0000 build(deps): bump y18n from 4.0.0 to 4.0.3 in /docs Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md) - [Commits](yargs/y18n@v4.0.0...y18n-v4.0.3) --- updated-dependencies: - dependency-name: y18n dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> commit 3958b39 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 10 18:06:35 2021 +0000 build(deps): bump lodash from 4.17.20 to 4.17.21 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.20...4.17.21) --- updated-dependencies: - dependency-name: lodash dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> commit 3511740 Merge: a8ad334 1dac4cd Author: Hunter Liu <[email protected]> Date: Fri Jun 11 02:06:25 2021 +0800 Merge pull request #112 from vue-final/dependabot/npm_and_yarn/docs/ws-6.2.2 build(deps): bump ws from 6.2.1 to 6.2.2 in /docs commit a8ad334 Merge: 210345c a75ffb1 Author: Hunter Liu <[email protected]> Date: Fri Jun 11 02:06:08 2021 +0800 Merge pull request #109 from vue-final/dependabot/npm_and_yarn/docs/browserslist-4.16.6 build(deps): bump browserslist from 4.14.5 to 4.16.6 in /docs commit 210345c Merge: e77a88a f18cbbe Author: Hunter Liu <[email protected]> Date: Fri Jun 11 02:05:56 2021 +0800 Merge pull request #108 from vue-final/dependabot/npm_and_yarn/browserslist-4.16.6 build(deps): bump browserslist from 4.16.3 to 4.16.6 commit 1dac4cd Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat Jun 5 04:54:05 2021 +0000 build(deps): bump ws from 6.2.1 to 6.2.2 in /docs Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/commits) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> commit a75ffb1 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed May 26 17:54:38 2021 +0000 build(deps): bump browserslist from 4.14.5 to 4.16.6 in /docs Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.5 to 4.16.6. - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](browserslist/browserslist@4.14.5...4.16.6) Signed-off-by: dependabot[bot] <[email protected]> commit f18cbbe Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed May 26 12:35:31 2021 +0000 build(deps): bump browserslist from 4.16.3 to 4.16.6 Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6. - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](browserslist/browserslist@4.16.3...4.16.6) Signed-off-by: dependabot[bot] <[email protected]> feat: back to original API fix: ts export refactor: rename plugin export function name fix: ts type docs: improve details
1 parent e77a88a commit 0c728ca

Some content is hidden

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

54 files changed

+726
-590
lines changed

dist/VueFinalModal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/components/examples/basic/BasicOptions.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="pb-8">
3-
<v-modal
3+
<custom-modal
44
v-model="showModal"
55
:ssr="ssr"
66
:lock-scroll="lockScroll"
@@ -31,7 +31,7 @@
3131
>
3232
<template v-slot:title># Hello, world!</template>
3333
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
34-
</v-modal>
34+
</custom-modal>
3535

3636
<div class="flex space-x-2">
3737
<v-button highlight @click="showModal = true">Open Modal</v-button>

docs/components/examples/basic/VAccessibility.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div>
3-
<v-modal v-model="show" @confirm="show = false" @cancel="show = false" focus-trap>
3+
<custom-modal v-model="show" @confirm="show = false" @cancel="show = false" focus-trap>
44
<template v-slot:title>Hello, vue-final-modal</template>
55
<p>Vue Final Modal is a renderless, stackable, detachable and lightweight modal component.</p>
6-
</v-modal>
6+
</custom-modal>
77

88
<v-button highlight @click="show = true">Open modal</v-button>
99
</div>

docs/components/examples/basic/VApiShow.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div>
3-
<v-modal v-model="showModal" name="VApiShow" @confirm="showModal = false" @cancel="showModal = false">
3+
<custom-modal v-model="showModal" name="VApiShow" @confirm="showModal = false" @cancel="showModal = false">
44
<template v-slot="{ params }">Hi {{ params.userName }} </template>
55
<template v-slot:title>$vfm.show</template>
6-
</v-modal>
6+
</custom-modal>
77
<v-button highlight @click="$vfm.show('VApiShow', { userName: 'vue-final-modal' })">Open modal</v-button>
88
</div>
99
</template>

docs/components/examples/basic/VDynamicAdvanced.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export default {
99
methods: {
1010
dynamic() {
1111
this.$vfm.show({
12-
component: 'VModal',
12+
component: 'CustomModal',
1313
bind: {
1414
name: 'VDynamicAdvacedModal'
1515
},
1616
on: {
17-
// event by v-modal
17+
// event by custom-modal
1818
confirm(close) {
1919
console.log('confirm')
2020
close()

docs/components/examples/basic/VEvents.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<v-modal
3+
<custom-modal
44
v-model="showModal"
55
@click-outside="clickOutside"
66
@before-open="beforeOpen"
@@ -10,7 +10,7 @@
1010
@cancel="showModal = false"
1111
>
1212
<template v-slot:title>Events Example!</template>
13-
</v-modal>
13+
</custom-modal>
1414
<v-button highlight @click="showModal = true">Open modal</v-button>
1515
</div>
1616
</template>

docs/components/examples/hoc/VModal.vue renamed to docs/components/examples/hoc/CustomModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<script>
2626
export default {
27-
name: 'VModal',
27+
name: 'CustomModal',
2828
inheritAttrs: false
2929
}
3030
</script>

0 commit comments

Comments
 (0)