From e2abec849537e30102e47fb0b6d6bd25ca00182a Mon Sep 17 00:00:00 2001 From: rigor789 Date: Thu, 11 Apr 2019 01:37:17 +0200 Subject: [PATCH 01/15] chore: update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 403d658a..bda27f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +## [2.2.2](https://github.com/nativescript-vue/nativescript-vue/compare/v2.2.1...v2.2.2) (2019-04-10) + + + ## [2.2.1](https://github.com/nativescript-vue/nativescript-vue/compare/v2.2.0...v2.2.1) (2019-04-04) From f1d9aae4bf840502310713500ed2b5c88b7edea8 Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Mon, 15 Apr 2019 13:25:13 +0200 Subject: [PATCH 02/15] feat (modals): Show modal with all possible ShowModalOptions options --- platform/nativescript/plugins/modal-plugin.js | 17 +++++++----- samples/app/modals.js | 27 +++++++++++++++---- samples/app/package.json | 2 +- 3 files changed, 33 insertions(+), 13 deletions(-) diff --git a/platform/nativescript/plugins/modal-plugin.js b/platform/nativescript/plugins/modal-plugin.js index 10be1d79..cba45259 100644 --- a/platform/nativescript/plugins/modal-plugin.js +++ b/platform/nativescript/plugins/modal-plugin.js @@ -30,7 +30,9 @@ export default { Vue.prototype.$showModal = function(component, options) { const defaultOptions = { - fullscreen: false + fullscreen: false, + animated: true, + stretched: false } // build options object with defaults options = Object.assign({}, defaultOptions, options) @@ -63,12 +65,13 @@ export default { }) const modalPage = navEntryInstance.$mount().$el.nativeView - this.$el.nativeView.showModal( - modalPage, - null, - closeCb, - options.fullscreen - ) + this.$el.nativeView.showModal(modalPage, { + context: null, + closeCallback: closeCb, + fullscreen: options.fullscreen, + animated: options.animated, + stretched: options.stretched + }) }) } } diff --git a/samples/app/modals.js b/samples/app/modals.js index c6faead8..d6547110 100644 --- a/samples/app/modals.js +++ b/samples/app/modals.js @@ -24,7 +24,7 @@ const ModalComponent = {