From ca583e107562057e08caf27f2781c57fa3d91f87 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 21 Aug 2022 17:28:32 +0800 Subject: [PATCH] docs(NoticeBar): disable swipe drag in demo (#10950) --- packages/vant/src/notice-bar/README.md | 1 + packages/vant/src/notice-bar/README.zh-CN.md | 1 + packages/vant/src/notice-bar/demo/index.vue | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/vant/src/notice-bar/README.md b/packages/vant/src/notice-bar/README.md index 87cb6cefc..042bf02c9 100644 --- a/packages/vant/src/notice-bar/README.md +++ b/packages/vant/src/notice-bar/README.md @@ -72,6 +72,7 @@ app.use(NoticeBar); vertical class="notice-swipe" :autoplay="3000" + :touchable="false" :show-indicators="false" > Content 1 diff --git a/packages/vant/src/notice-bar/README.zh-CN.md b/packages/vant/src/notice-bar/README.zh-CN.md index 0c3cc5c27..6f566454d 100644 --- a/packages/vant/src/notice-bar/README.zh-CN.md +++ b/packages/vant/src/notice-bar/README.zh-CN.md @@ -88,6 +88,7 @@ app.use(NoticeBar); vertical class="notice-swipe" :autoplay="3000" + :touchable="false" :show-indicators="false" > 明月直入,无心可猜。 diff --git a/packages/vant/src/notice-bar/demo/index.vue b/packages/vant/src/notice-bar/demo/index.vue index 03a12e0ba..1e50ff452 100644 --- a/packages/vant/src/notice-bar/demo/index.vue +++ b/packages/vant/src/notice-bar/demo/index.vue @@ -69,6 +69,7 @@ const t = useTranslate({ vertical class="notice-swipe" :autoplay="3000" + :touchable="false" :show-indicators="false" > {{ t('poetry1') }}