From b3b2a20ed671286e899f5d1bc2d9d883bd76637b Mon Sep 17 00:00:00 2001 From: duqingquan Date: Fri, 22 Sep 2023 20:36:05 +0800 Subject: [PATCH] =?UTF-8?q?action=20sheet=20=E9=80=89=E9=A1=B9=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/action-sheet/action-sheet.uvue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/API/action-sheet/action-sheet.uvue b/pages/API/action-sheet/action-sheet.uvue index 60e8adc8..a16c30bd 100644 --- a/pages/API/action-sheet/action-sheet.uvue +++ b/pages/API/action-sheet/action-sheet.uvue @@ -82,9 +82,11 @@ if (this.itemContentLarge) { itemInfo = ['两个黄鹂鸣翠柳,一行白鹭上青天。窗含西岭千秋雪,门泊东吴万里船', '水光潋滟晴方好,山色空蒙雨亦奇。 欲把西湖比西子,淡妆浓抹总相宜', ''] - } else if (this.itemNumLargeSelect) { + } + + if (this.itemNumLargeSelect) { // 大量选项测试,不能超过6个元素 https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet - itemInfo = [] + itemInfo = [] for (var i = 1; i <= 10; i++) { itemInfo.push('两个黄鹂鸣翠柳,一行白鹭上青天'); } -- GitLab