docs: ✏️ fix demo code in Dialog documentation (#11610)

This commit is contained in:
文博 2023-02-23 11:35:40 +08:00 committed by GitHub
parent d7e6618903
commit 1940541ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,9 @@ Vant 从 4.0 版本开始不再支持 `babel-plugin-import` 插件,请参考 [
`closeOnPopstate` 属性设置为 false 即可。
```js
Dialog.alert({
import { showDialog } from 'vant';
showDialog({
title: '标题',
message: '弹窗内容',
closeOnPopstate: false,