Releases: nativescript-vue/nativescript-vue
Releases · nativescript-vue/nativescript-vue
3.0.0-rc.2
$showModal
changes
If a closeCallback
is passed to the $showModal
options, it will now be called with all the arguments passed to $modal.close
or $closeModal
. Previously this was never called.
The props
types are automatically inferred unless there's a first generic passed in.
/* Without a generic */
$showModal(Home, {
props: {
// this infers props/events from the "Home" component and provides intellisense.
},
closeCallback(data, ...args) {
// data type is any
// args type is any[]
}
}).then(data => {
// data type is any
});
/* With a generic */
type Example = { foo: string; };
$showModal<Example>(Home, {
props: {
// this is `any` because we explicitly passed in `<Example>` as the generic above.
}
closeCallback(data, ...args) {
// data type is Example
// args type is any[]
// this is called with the closeModal data + additional args
}
}).then(data => {
// data type is Example
// this is called with only the 1st argument passed to closeModal because promises can't resolve multiple values.
});
$navigateTo
changes
Similarly to $showModal
the type of props
is now inferred.
Full Changelog: 3.0.0-rc.1...3.0.0-rc.2
3.0.0-rc.1
What's Changed
- feat: add registerElement RootLayout by @vallemar in #1016
- feat: add scoped styles support by @adamcikado in #1035
- Improve tracked global properties by @heywhy in #1036
- feat: better style binding support by @rigor789 in #1042
- feat: updates by @rigor789 in #1045
- fix:
el.nativeView
reactivity oddities by @vallemar in #1044 - feat: update vue to 3.4 by @vallemar in #1050
- fix: handle views imported in script setup by @rigor789 in #1051
- feat: Vue Devtools support by @heywhy in #1060
- fix: export ELEMENT_REF by @farfromrefug in #1061
- fix: reference returned instance by @heywhy in #1068
- Register ProxyViewContainer by @MrSnoozles in #1065
- fix: include the tabview element by @heywhy in #1064
New Contributors
- @vallemar made their first contribution in #1016
- @adamcikado made their first contribution in #1035
- @heywhy made their first contribution in #1036
- @MrSnoozles made their first contribution in #1065
Full Changelog: https://github.com/nativescript-vue/nativescript-vue/commits/3.0.0-rc.1