diff --git a/docs/markdown/theme.md b/docs/markdown/theme.md index 6ad5d860..0bb33470 100644 --- a/docs/markdown/theme.md +++ b/docs/markdown/theme.md @@ -83,7 +83,7 @@ Page({ ``` ```js -import Toast from '@vant/weapp/dist/toast/toast'; +import Toast from '@vant/weapp/toast/toast'; Page({ onClick() { diff --git a/packages/dialog/README.md b/packages/dialog/README.md index 9f0258f1..a5a62dad 100644 --- a/packages/dialog/README.md +++ b/packages/dialog/README.md @@ -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(() => { diff --git a/packages/notify/README.md b/packages/notify/README.md index d5035deb..1de079ad 100644 --- a/packages/notify/README.md +++ b/packages/notify/README.md @@ -19,7 +19,7 @@ ### 基础用法 ```js -import Notify from '@vant/weapp/dist/notify/notify'; +import Notify from '@vant/weapp/notify/notify'; Notify('通知内容'); ``` diff --git a/packages/picker/README.md b/packages/picker/README.md index 06687fec..edcf9684 100644 --- a/packages/picker/README.md +++ b/packages/picker/README.md @@ -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: { diff --git a/packages/sidebar/README.md b/packages/sidebar/README.md index 4ff5aaa8..47ea3fa2 100644 --- a/packages/sidebar/README.md +++ b/packages/sidebar/README.md @@ -78,7 +78,7 @@ Page({ ``` ```js -import Notify from '@vant/weapp/dist/notify/notify'; +import Notify from '@vant/weapp/notify/notify'; Page({ data: {