mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 10:22:44 +08:00
fix: fix dialog & toast doc error (#5064)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
This commit is contained in:
parent
e87c22edec
commit
9d96e248f4
@ -83,7 +83,7 @@ Page({
|
||||
```
|
||||
|
||||
```js
|
||||
import Toast from '@vant/weapp/dist/toast/toast';
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
|
||||
Page({
|
||||
onClick() {
|
||||
|
@ -25,7 +25,7 @@
|
||||
```
|
||||
|
||||
```javascript
|
||||
import Dialog from '@vant/weapp/dist/dialog/dialog';
|
||||
import Dialog from '@vant/weapp/dialog/dialog';
|
||||
|
||||
Dialog.alert({
|
||||
title: '标题',
|
||||
@ -50,7 +50,7 @@ Dialog.alert({
|
||||
```
|
||||
|
||||
```javascript
|
||||
import Dialog from '@vant/weapp/dist/dialog/dialog';
|
||||
import Dialog from '@vant/weapp/dialog/dialog';
|
||||
|
||||
Dialog.confirm({
|
||||
title: '标题',
|
||||
@ -73,7 +73,7 @@ Dialog.confirm({
|
||||
```
|
||||
|
||||
```javascript
|
||||
import Dialog from '@vant/weapp/dist/dialog/dialog';
|
||||
import Dialog from '@vant/weapp/dialog/dialog';
|
||||
|
||||
Dialog.alert({
|
||||
title: '标题',
|
||||
@ -100,7 +100,7 @@ Dialog.alert({
|
||||
```
|
||||
|
||||
```javascript
|
||||
import Dialog from '@vant/weapp/dist/dialog/dialog';
|
||||
import Dialog from '@vant/weapp/dialog/dialog';
|
||||
|
||||
const beforeClose = (action) => new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
|
@ -19,7 +19,7 @@
|
||||
### 基础用法
|
||||
|
||||
```js
|
||||
import Notify from '@vant/weapp/dist/notify/notify';
|
||||
import Notify from '@vant/weapp/notify/notify';
|
||||
|
||||
Notify('通知内容');
|
||||
```
|
||||
|
@ -23,7 +23,7 @@
|
||||
```
|
||||
|
||||
```javascript
|
||||
import Toast from '@vant/weapp/dist/toast/toast';
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
|
||||
Page({
|
||||
data: {
|
||||
@ -62,7 +62,7 @@ Page({
|
||||
```
|
||||
|
||||
```javascript
|
||||
import Toast from '@vant/weapp/dist/toast/toast';
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
|
||||
Page({
|
||||
data: {
|
||||
|
@ -78,7 +78,7 @@ Page({
|
||||
```
|
||||
|
||||
```js
|
||||
import Notify from '@vant/weapp/dist/notify/notify';
|
||||
import Notify from '@vant/weapp/notify/notify';
|
||||
|
||||
Page({
|
||||
data: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user