From 84e1cba7b95b68c9be9e79f8f1379f00c0f0903a Mon Sep 17 00:00:00 2001 From: Sanqi Date: Thu, 27 Jul 2023 11:19:37 +0800 Subject: [PATCH] fix: swpie indicator --- packages/quarkd/src/swipe/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/quarkd/src/swipe/index.tsx b/packages/quarkd/src/swipe/index.tsx index 297f38c4..8cfa3135 100644 --- a/packages/quarkd/src/swipe/index.tsx +++ b/packages/quarkd/src/swipe/index.tsx @@ -360,6 +360,9 @@ class QuarkSwipe extends QuarkElement { }; renderIndicators() { + if (this.count <= 1) { + return null; + } const indicators = []; for (let i = 0; i < this.count; i += 1) { const indicator = (