You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`https://cdn.jsdelivr.net/npm/[email protected].3/dist/van-ui.nomodule.js` can be used for the non-minified version.
58
+
`https://cdn.jsdelivr.net/npm/[email protected].4/dist/van-ui.nomodule.js` can be used for the non-minified version.
59
59
60
60
Note that: **VanJS** needs to be imported via a `<script type="text/javascript">` tag for **VanUI** to work properly.
61
61
@@ -770,12 +770,12 @@ You can override the default stacking behavior by specifying `{customStacking: t
770
770
771
771
### choose
772
772
773
-
Createsa [`Modal`](#modal) componentthatletstheuserchooseamonggivenoptions, returnsa [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that resolves when user makes the choice (resolves to the selected string), or cancels (resolves to `undefined`).
773
+
Createsa [`Modal`](#modal) componentthatletstheuserchooseamonggivenoptions, returnsa [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that resolves when user makes the choice (resolves to the chosen string), or cancels (resolves to `null`).
774
774
775
775
#### Signature
776
776
777
777
```js
778
-
choose({...props}) => Promise<string | undefined>
778
+
choose({...props}) => Promise<string | null>
779
779
```
780
780
781
781
#### Examples
@@ -785,17 +785,17 @@ Preview with [CodeSandbox](https://codesandbox.io/p/sandbox/github/vanjs-org/van
0 commit comments