mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: ✏️ fix demo code in Dialog documentation (#11610)
This commit is contained in:
parent
d7e6618903
commit
1940541ea3
@ -305,7 +305,9 @@ Vant 从 4.0 版本开始不再支持 `babel-plugin-import` 插件,请参考 [
|
||||
将 `closeOnPopstate` 属性设置为 false 即可。
|
||||
|
||||
```js
|
||||
Dialog.alert({
|
||||
import { showDialog } from 'vant';
|
||||
|
||||
showDialog({
|
||||
title: '标题',
|
||||
message: '弹窗内容',
|
||||
closeOnPopstate: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user