首页 > 解决方案 > 行动表条目限制为 5 个

问题描述

选择中的多选操作表将条目限制为 5 个元素。为什么?我正在使用 ion-select 的文档代码示例进行测试。仅考虑前 5 个选项。

它适用于单选(界面“popover”),但多选 multi="true" 失败,无论是界面“popover”还是“action-sheet”

<ion-item>
  <ion-label>Toppings</ion-label>
    <ion-select multiple="true" cancelText="Nah" okText="Okay!">
      <ion-select-option value="bacon">Bacon</ion-select-option>
      <ion-select-option value="olives">Black Olives</ion-select-option>
      <ion-select-option value="xcheese">Extra Cheese</ion-select-option>
      <ion-select-option value="peppers">Green Peppers</ion-select-option>
      <ion-select-option value="mushrooms">Mushrooms</ion-select-option>
      <ion-select-option value="onions">Onions</ion-select-option>
      <ion-select-option value="pepperoni">Pepperoni</ion-select-option>
      <ion-select-option value="pineapple">Pineapple</ion-select-option>
      <ion-select-option value="sausage">Sausage</ion-select-option>
      <ion-select-option value="Spinach">Spinach</ion-select-option>
    </ion-select>
  </ion-item>
</ion-list>

我希望看到 10 个条目,在这个例子中

标签: angularionic-framework

解决方案


推荐阅读