angular – Ion-list应该自动在列表项上添加箭头吗?

前端之家收集整理的这篇文章主要介绍了angular – Ion-list应该自动在列表项上添加箭头吗?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Ionic 2文档使它看起来像箭头自动随附.然而,对我来说这不是那样的.

https://ionicframework.com/docs/components/#lists

<ion-list>
         <ion-item>
           <p>Terms Of Use</p>
         </ion-item>
         <ion-item>
           <p>Privacy Policy</p>
         </ion-item>
</ion-list>

解决方法

您正在谈论的箭头是细节箭头( docs).就像你在文档中看到的那样:

By default,and elements with the ion-item attribute will
display a right arrow icon on ios mode.

To hide the right arrow icon on either of these elements,add the
detail-none attribute to the item. To show the right arrow icon on an
element that doesn’t display it naturally,add the detail-push
attribute to the item.

关于Android和Windows手机,

This feature is not enabled by default for md and wp modes,but it can
be enabled by setting the Sass variables $item-md-detail-push-show and
$item-wp-detail-push-show,respectively,to true. It can also be
disabled for ios by setting $item-ios-detail-push-show to false

因此,如果您想为Android和Windows手机启用它,您只需要在variables.scss文件添加以下内容

$item-md-detail-push-show: true;
$item-wp-detail-push-show: true;

猜你在找的Angularjs相关文章