diff --git a/pages/API/action-sheet/action-sheet.uvue b/pages/API/action-sheet/action-sheet.uvue index 60e8adc88ee0c1e617c488d0ca8878c0b13ce17d..a16c30bde2a2acf73ca8ec9585402a9a5937500b 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('两个黄鹂鸣翠柳,一行白鹭上青天'); }