fix: startDrag params type incorrect (#31034)

This commit is contained in:
Black-Hole 2021-09-23 16:07:39 +08:00 committed by GitHub
parent 68d3659f75
commit e39a1d2ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1827,7 +1827,8 @@ End subscribing for frame presentation events.
#### `contents.startDrag(item)`
* `item` Object
* `file` String[] | String - The path(s) to the file(s) being dragged.
* `file` String - The path to the file being dragged.
* `files` String[] (optional) - The paths to the files being dragged. (`files` will override `file` field)
* `icon` [NativeImage](native-image.md) | String - The image must be
non-empty on macOS.