@tauri-apps/api@2.0.0-beta.15
Ce contenu n’est pas encore disponible dans votre langue.
New Features
Enhancements
080b6e127
(#10246 by @Legend-Master) UseEventName
onWindow
,Webview
andWebviewWindow
’sonce
so you can get auto complete for tauri’s built-in events
Bug Fixes
080b6e127
(#10246 by @Legend-Master) Fixonce
doesn’t detached after one callback if event handler throws
Breaking Changes
-
261c9f942
(#10170 by @amrbashir) Renamed drag and drop events inTauriEvent
enum to better convey when they are triggered:TauriEvent.DRAG
->TauriEvent.DRAG_ENTER
TauriEvent.DROP_OVER
->TauriEvent.DRAG_OVER
TauriEvent.DROP
->TauriEvent.DRAG_DROP
TauriEvent.DROP_CANCELLED
->TauriEvent::DRAG_LEAVE
Also the
type
field values inWindow/Webview/WebviewWindow.onDropEvent
andDragDropEvent
have changed:dragged
->enter
dragOver
->over
dropped
->drop
cancelled
->leave
-
2b1ceb40d
(#10229 by @amrbashir) Renamed the JSgetCurrent
andgetAll
functions to a clearer name to avoid ambiguity:getCurrent
inwindow
module has been renamed togetCurrentWindow
getCurrent
inwebview
module has been renamed togetCurrentWebview
getCurrent
inwebviewWindow
module has been renamed togetCurrentWebviewWindow
getAll
inwindow
module has been renamed togetAllWindows
getAll
inwebview
module has been renamed togetAllWebviews
getAll
inwebviewWindow
module has been renamed togetAllWebviewWindows
© 2024 Tauri Contributors. CC-BY / MIT