Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

3.0.0-rc.2

Compare
Choose a tag to compare
Loading
@rigor789rigor789 released this 19 Apr 11:11
· 10 commits to main since this release

$showModal changes

If acloseCallback 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.

Theprops 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 */typeExample={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 ofprops is now inferred.

Full Changelog:3.0.0-rc.1...3.0.0-rc.2

Assets2
Loading
localusercamp, OttoAjanel, vallemar, c01nd01r, and shafqatsha reacted with thumbs up emojidelaneyb, OttoAjanel, vallemar, and shafqatsha reacted with heart emojiHamoBoker, vallemar, localusercamp, OttoAjanel, PixsaOJ, shafqatsha, mfcarneiro, and FuseCodeNinja reacted with rocket emojishafqatsha reacted with eyes emoji
10 people reacted

[8]ページ先頭

©2009-2025 Movatter.jp